Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated