CTRL Mouse Click

  • Thread starter Thread starter Kevin L
  • Start date Start date
K

Kevin L

Is there a way to tell when a user, for example, Clicks the right mouse
button while also pressing the Ctrl Key?
 
Kevin,

you can use the keydown and keyup events to toggle a variable that tracks
the current state of your ctrl key (e.control). then check your state
variable on the mousedown or click events.
Make sure your form's keypreview property is set to true.

Kirk Graves
 
Kevin L said:
Is there a way to tell when a user, for example, Clicks the right mouse
button while also pressing the Ctrl Key?

You can check in the 'Click' event if the key is pressed:

\\\
If ((Control.ModifierKeys And Keys.Control) = Keys.Control Then
...
End If
///
 
Back
Top