By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,889 Members | 1,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,889 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

" Just Me" <gr****@a-znet.com> wrote in message
news:Ow****************@TK2MSFTNGP14.phx.gbl...
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

Nov 21 '05 #2

P: n/a
That's tricky Bob !
Nov 21 '05 #3

P: n/a
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!
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:eT**************@TK2MSFTNGP14.phx.gbl...
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.

" Just Me" <gr****@a-znet.com> wrote in message
news:Ow****************@TK2MSFTNGP14.phx.gbl...
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


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.