Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleSee if the left mouse button is up or down even outside this program
Keywordsmouse, up, down
CategoriesTips and Tricks, API
 
Use the GetAsyncKeyState API function to see if the mouse button is up or down.
 
Private Sub Timer1_Timer()
    If GetAsyncKeyState(1) = 0 Then
        Label1.Caption = "mouse up"
    Else
        Label1.Caption = "mouse down"
    End If
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated