Results 1 to 2 of 2

Thread: How to find which mouse button is clicked?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2003
    Posts
    28

    How to find which mouse button is clicked?

    How to I determine if left or right mouse button is clicked?
    Regards --
    Vujjeni

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Use this code along with mousedown event of the form or whatever .
    VB Code:
    1. Select Case e.Button
    2.             Case MouseButtons.Left
    3.                 MsgBox("Left button was clicked")
    4.             Case MouseButtons.Right
    5.                 MsgBox("Right button was clicked")
    6.         End Select

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