I am getting a list of pictures from a directory and storing the filenames in a List. I then loop through each of these and create a PictureBox<
List
PictureBox<
sender is the PictureBox that was clicked:
sender
PictureBox
private void PictureClick(object sender, EventArgs e) { PictureBox oPictureBox = (PictureBox)sender; // add border, do whatever else you want. }