How can I set mouse buttons state in C#?
My application control mouse by gestures and I need to set mouse leftbutton state to pressed base on my gesture.
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.
.NET provides mouse event handlers that consume events raised when Form controls are interacted with. You can also simulate mouse behavior within the Forms control context.
.NET mouse events in windows forms
For Global/Out of Windows Forms mouse events and simulate mouse functions, you will need a global mouse hook library/dll such as:
global mouse hook and mouse simulator