G
Guest
I have 68 picturebox objects in an array and I want to work with the
picturebox that is clicked on. How can I figure out which picturebox was
clicked on so that I can make one generic "click" routine instead of having
68 separate events like this?
private void pictureBox1_Click(object sender, System.EventArgs e)
{SelectedPicture = 0;}
private void pictureBox2_Click(object sender, System.EventArgs e)
{SelectedPicture = 1;}
..
..
..
etc
picturebox that is clicked on. How can I figure out which picturebox was
clicked on so that I can make one generic "click" routine instead of having
68 separate events like this?
private void pictureBox1_Click(object sender, System.EventArgs e)
{SelectedPicture = 0;}
private void pictureBox2_Click(object sender, System.EventArgs e)
{SelectedPicture = 1;}
..
..
..
etc