Results 1 to 2 of 2

Thread: Need Api ASAP

  1. #1

    Thread Starter
    Lively Member Optic's Avatar
    Join Date
    Mar 2001
    Location
    I'm everywhere and nowhere, I'm inside your computer and inside your mind. You can't escape me for I am vision.
    Posts
    117

    Talking

    I need an api to distinguish between right and left clicking of the mouse. I want to have right click menus but i am unable to have the program distinguish whether the user clicked using the left button or the right.

    Any help would be appreciated.

    Optic

  2. #2
    Guest
    Code:
    Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    
        If Button = vbRightButton Then
            Msgbox "Button 2 clicked"
        End If
    
    End Sub

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