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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top