how to capture form_Mouse events?

  • Thread starter Thread starter Jerry
  • Start date Start date
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
 
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
 
Back
Top