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
///
 

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