get cooridates or click event?

  • Thread starter Thread starter Darren Clark
  • Start date Start date
D

Darren Clark

How can i get the coords of a simple click on a windows form?
 
Found it

MessageBox.Show(Control.MousePosition.X.ToString());
 
Hi Darren,

You use the MouseDown event for this (or MouseUp).

Happy coding!
Morten Wennevik [C# MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top