473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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

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
3 3007
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
That's tricky Bob !
Nov 21 '05 #3
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dave | last post by:
I am working with a proprietary database that records the date, time, location, and speed of a vehicle. It is pulling this information from GPS unit tied to a vehicle. The table is populated with...
1
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here....
0
by: Daisy | last post by:
I've got a control inheriting from UserControl, with a scrollbar docked to the right. I'm using KeyUp on my control to capture cursor keys and move things about the control accordingly (I've...
3
by: Dean Earley | last post by:
Has anyone had the NodeClick event not firing in VB6 with the VB5 Treeview control? It fires correctly when using the cursor keys to select nodes but there is nothing when i click a node. It...
6
by: Dave | last post by:
I am trying to implement drag and drop in a C# app, but for some reason I can't get it to call the GiveFeedback event. I have done everything by the book as far as I can tell, but a breakpoint in...
4
by: Liverpool fan | last post by:
I have a windows application written using VB .NET that encompasses a countdown timer modal dialog. The timer is a System.Timers.Timer with an interval of 1 second. AutoReset is not set so accepts...
3
by: Charlie Brown | last post by:
I have written some custom controls that can dragged around a container control. When the controls reach the edges of the container control, they stop moving. The mouse continues to travel beyond...
5
by: =?Utf-8?B?QmVuIFIu?= | last post by:
Hi, In a .NET 2.0 winforms application, I've got a textbox that, when updated, uses the validated event to cascade the change to another textbox (along with another value). This works well if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.