Disable Right Mouse button

  • Thread starter Thread starter shannon
  • Start date Start date
S

shannon

We have a kiosk that has a track ball mouse. We do not
want the user to be able to right click in order to exit
the program that is running. Is there any way to disable
the right mouse button in Windows XP?
thanks
 
Option Explicit

Private Sub Form_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
MsgBox "No right click allowed."
End If
End Sub
 
Back
Top