Solved

MouseHoverTime

Posted on 2010-09-08
2
798 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Alternative to visual sourcesafe 2 141
Messagebox for a Web Site Application 4 82
Microsoft C++ code failing in executable that worked 9 123
SSRS troubles 4 84
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 …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and 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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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