how to capture form_Mouse events?

J

Jerry

Hi All,

I am trying to capture the Form MouseHover event and write
text to the console but nothing is happening. So I tried
to capture the MouseMove event. Nothing happens in the
MouseMove event sub. Do I have to set some property on
the form to activate the MouseEvents? I noticed in the
Windows generated code there were no Friend WithEvents for
Mouse stuff. Any help appreciated.

Jerry
 
A

Anand Balasubramanian

hi ,
In the forms property list, there will be a proeprty called KeyPreview.
SEt this to true and you should be able to capture the mouse events.
Thanks



Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks
 

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

Top