Results 1 to 14 of 14

Thread: [RESOLVED]Capturing mouse click event in vb.net(Thanks so much Mr.Polite)

Threaded View

  1. #1

    Thread Starter
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    [RESOLVED]Capturing mouse click event in vb.net(Thanks so much Mr.Polite)

    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..
    VB Code:
    1. Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    2.  
    3.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    4.         If GetAsyncKeyState(1) = "1" Then
    5.             Label1.Text = ("Left mouse button clicked")
    6.         Else
    7.             Label1.Text = "mouse button up"
    8.         End If
    9.     End Sub
    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...
    Thanks
    Last edited by uniquegodwin; Sep 4th, 2005 at 08:51 AM.
    Godwin

    Help someone else with what someone helped you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width