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

All 2 Replies

Handle mouseClick event.

private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
        {
           int x=e.X;
           int y=e.Y;
        }
commented: ++++ +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.