Solved

MouseHoverTime

Posted on 2010-09-08
2
791 Views
Last Modified: 2013-11-27
Hi,

I am using the 'mousehover' event of a picturebox in vb 2010 express.  Is there a way i can lengthen the mouseover time?  I DO NOT want to change the time for the whole OS, just my program. Any ideas?
0
Comment
Question by:ToddHawley4984
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 33631025
You can use the MouseEnter() event to start a Timer with your desired "hover" interval.  In the MouseMove() event simply turn off the Timer and immediately re-start it again.  In the MouseLeave() event turn off the Timer.  If the Timer Tick() event ever fires then the mouse was over the PictureBox for your target time without being moved so you can trigger whatever code you need...
0
 

Author Closing Comment

by:ToddHawley4984
ID: 33631197
That worked however I did remove the move event.  If the user doesn't let go of the mouse the timer would just keep restarting and nothing would happen.  Thanks for your help
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now