We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,610 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Mouse Hover delay?

Hi, I have created a form with one button. I m using mouse hover event on button to execute code! But the problem is, I want to execute the code only if my mouse hover on button for more than 2 or 3 seconds!

2
Contributors
1
Reply
1 Hour
Discussion Span
1 Year Ago
Last Updated
2
Views
Andy90
Junior Poster in Training
77 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

You might try this:

private void button1_MouseHover(object sender, EventArgs e)
        {
            // check if this point stays within bounds of the button
            // for longer then 2 secs.
            Point CP = Cursor.Position;
        }
ddanbe
Industrious Poster
4,277 posts since Oct 2008
Reputation Points: 2,121
Solved Threads: 720
Skill Endorsements: 26

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0671 seconds using 2.64MB