I want to make a program that if we click on a location for example : -2, 0 , a function will be done.
P.S. : The clicking event is on the form. So, should I use timer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Jakub says, use the forms click event. You can find this here:
When you click anywhere on the form, you get the location of the click passed in as X and Y co-ordinates in the event args, as well as which mouse button was clicked, like so: