Handling Mouse Events in VB.NET
Handling events in VB is little bit tricky than in C++ or C#. In VB.NET, you write a delegate and then write an event handler. These event handlers are overridable public events defined in the Control or other WinForms classes.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Handling Mouse Events in VB.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Robert Gagnon RangerPosted Apr 12, 2010, 10:50 PM
I'm working on a application and i want it to control my mouse as I want. I have all the code to make my mouse move somewhere on my screen, and to do a left click. Now all what i need is the code to make my mouse do a right click. If you could help me out it would be appreciated!
Vladimir JevticPosted Apr 8, 2010, 12:25 PM
I would like to totally disable mouse and keyboard for 20 seconds. Just for fun, to make joke with my friend! I use vb2008 but i don't know how to do this! So please help! THX
toufikPosted Aug 24, 2007, 10:34 AM
Mr Chand, Can you show me how to export Excel files into Access? Thanks, T.
Kenneth ConnollyPosted Aug 20, 2007, 12:16 AM
First let me say thanks for the tip was helpful I was a little confused at first becuase ; AddHandler Me.MouseDown AddressOf Me.Form_MouseDown should be AddHandler Me.MouseDown, AddressOf Me.Form_MouseDown note: comma in first statement missing can not build debugger clued me in Note also Me.Form_Mouse_Down too generic Me.(myformname object)_MouseDown where myformname object is generic Form1 or Form2 etc or user named without Comment characters() just used for sytax clarity