I have several PictureBox controls that all call the same subroutine on a CLICK event. The Delegate subroutine looks like this: (where sender is the PictureBox control that was clicked.
private void AnyPicture_Click(object sender, EventArgs e) {}
How acheive sender.BackColor = Color.Red when any of several PictureBox controls could have raised this CLICK event?
How can I set a property associated with a Control onClick when the subroutine is used by multiple Controls?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Simon66 pointsPosted Apr 14, 2007, 10:38 AM EDT
Joseph Stanish3 pointsPosted Apr 14, 2007, 9:04 PM EDT
<question resolved>