San Jose State University

c = Color.Yellow; this.BackColor = c; Invalidate();}} You perhaps haven’t seen the sender as ToolStripMenuItem construction in C# before. This is more or less equivalent to casting sender to ToolStripMenuItem, except that if sender really isn’t a ToolStripMenuItem, the behaviour is different. An explicit cast will throw an exception. ................
................