Detect Right mouse click and key press

  • Thread starter Thread starter John Wright
  • Start date Start date
J

John Wright

I need to backdoor my program for IT. I want to set a form so that if an IT
staffer has the left ctrl key press and right click on a picturebox a hidden
control will appear (a checkbox) to override the startup of the program.
How is this done?

John
 
John Wright said:
I need to backdoor my program for IT. I want to set a form so that if an
IT staffer has the left ctrl key press and right click on a picturebox a
hidden control will appear (a checkbox) to override the startup of the
program. How is this done?

\\\
Private Sub PictureBox1_MouseUp( _
ByVal sender As Object, _
ByVal e As MouseEventArgs _
) Handles PictureBox1.MouseUp
If _
e.Button = MouseButtons.Right AndAlso _
CBool(Control.ModifierKeys And Keys.LControlKey) _
Then
MsgBox("Hello World!")
End If
End Sub
///
 
Back
Top