I'd like to get an event each time the cursor stops moving.

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

If I move the mouse cursor over a control and stop moving I get a MouseHover
event.

If I then move the cursor while staying within the control and then stop
moving I do not get another MouseHover event.

To get a Mousehover I must leave and reenter the control.

I'd like to get an event each time the cursor stops moving.

Anyone know how to do that?


Thanks
 
Every time the mouse moves RESET a timer wit a timeout of n milliseconds.
When the mouse stops moving the timer will stop being reset and will
eventually expire.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Thanks. I had thought of that but before I did anything like that I like to
know from an expert like you that I'm not missing some simpler approach.

Thanks a lot.

PS

Speaking of a better approach your previous suggestion concerning
StringFormat opened new vistas.
Your site was great too!
 
Back
Top