yronium Level: Moderator

 Registered: 14-04-2002 Posts: 907
|
Re: Right click to work same way as left click
Hello. Offhand, in VB6, you could deal with the MouseDown event. It has an argument to determine whether is clicked the left or right button, as following ' === VB6 code ===
Private Sub btnTest_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
' see help of MouseDown event for Button's argument avaliable values
If Button = 2 Then MsgBox "Right-click on command button"
End Sub |
Yet, the KeyDown event with the KeyCode argument set on vbKeyRButton seems not working.
This principle applies to VB6, so have a look if there is a similar property in VB.Net
Hope it helps
____________________________
Real Programmer can count up to 1024 on his fingers
|