2
Reply

Make pictureboxes/bitmaps on form selectable

Warre De Mey

Warre De Mey

Sep 6 2013 9:56 AM
1.5k
I'm using an arraylist of bitmaps and I loop through them, adding them all to a picturebox and adding those to a panel on my form. Now I would like to be able to select one of those pictureboxes/bitmaps and then do some things with the selected image after clicking a button. Do I just add an eventhandler to my pictureboxes when looping through them? Because I don't know how I can pass the parameters to the method called by the eventhandler. There can only be 1 picturebox selected and is there a way to make clear which one is the selected one?

Answers (2)