Warre De Mey

Warre De Mey

  • NA
  • 4
  • 3.9k

Make pictureboxes/bitmaps on form selectable

Sep 6 2013 9:56 AM
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)