capture right mouse button click

  • Thread starter Thread starter gjnave
  • Start date Start date
G

gjnave

Guest
How can i make a form (or anything on the form) pop up a message if the user clicks the right mouse button?

thanks,

jim
 
I solved my own problem...

Private Sub Button1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseDown, MyBase.MouseDown
If e.Button = MouseButtons.Right Then
MsgBox("clicked right button")
End If
End Sub
 
Back
Top