Hello, dear Programmers!

Prompt - how to get the coordinates (of picture box) of the point which was clicked (by mouse))?
Thank you for your answer)

Recommended Answers

Handle mouseClick event.

[code]
private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
{
int x=e.X;
int y=e.Y;
}
[/code]

Jump to Post

All 2 Replies

Handle mouseClick event.

private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
        {
           int x=e.X;
           int y=e.Y;
        }
commented: ++++ +1