none
Detect Mouse On & Off the Form RRS feed

  • Question

  • This is another piece of code I can't seem to figure out.

    Simply put, I have no idea how to detect the mouse leaving the form for more than a second.

    When the mouse has left the form, the program detects it and counts a certain time and then trigger an animation (I have the animation, it moves off the screen)

    I am using Visual Studio 2012 with a Windows Forms Project.

    Thanks, if you need more info, I will supply it.


    • Edited by 4slime Tuesday, January 14, 2014 12:01 PM Clarifying certain parts of the post
    Tuesday, January 14, 2014 12:00 PM

Answers

  •  Private Sub Form1_MouseLeave(sender As Object, e As EventArgs) Handles Me.MouseLeave
    
        End Sub


    Success
    Cor

    • Marked as answer by 4slime Tuesday, January 14, 2014 12:17 PM
    Tuesday, January 14, 2014 12:10 PM

All replies

  •  Private Sub Form1_MouseLeave(sender As Object, e As EventArgs) Handles Me.MouseLeave
    
        End Sub


    Success
    Cor

    • Marked as answer by 4slime Tuesday, January 14, 2014 12:17 PM
    Tuesday, January 14, 2014 12:10 PM
  • Thanks! Can't believe it was actually this simple!
    Tuesday, January 14, 2014 12:17 PM