Hello..
Can someone help on how I can detect the mousedown,mouseup etc even outside my application using vb.net?
I have an API here,but,doesnt seem to work the way I expect it to..
Should that API be modified to be used or something?? or what should I do to capture the mouse click events..both left and right buttons...VB Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If GetAsyncKeyState(1) = "1" Then Label1.Text = ("Left mouse button clicked") Else Label1.Text = "mouse button up" End If End Sub
Thanks




Reply With Quote