If I double click my picturebox in the design screen, I get a click event method in my code:
I know very little of the event syntax and class design, so I don't know how to get information from the event in question. I would like to know the coordinates where my mouse clicked the picturebox. Something like this:Code:private void PictureBox1_Click(object sender, EventArgs e) { }
I know this won't work. But how should this be done?Code:private void PictureBox1_Click(object sender, EventArgs e) { int x = e.X; int y = e.Y; }


Reply With Quote
