With this code:
private void Form1_MouseClick(object sender, MouseEventArgs e)
Size imageSize = new Size(17, 17);
if (e.Button == MouseButtons.Left)
PictureBox spor = new PictureBox();
spor.Image = sporType;
spor.Size = imageSize;
spor.Location = new Point(imageSize.Width * (e.Location.X / imageSize.Width), imageSize.Height * (e.Location.Y / imageSize.Height));
the user can insert controls - lots of different pictures in pictureboxe - on a form.
If the user clicks on one of them, I want to do some things with that particular picturebox - delete it or change the image.
How can I know WHEN and WITCH of them the user clicks on ?
Best regards KSor, Denmark
View Complete Post