K Kevin L Oct 6, 2003 #1 Is there a way to tell when a user, for example, Clicks the right mouse button while also pressing the Ctrl Key?
Is there a way to tell when a user, for example, Clicks the right mouse button while also pressing the Ctrl Key?
K Kirk Oct 6, 2003 #2 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, 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
H Herfried K. Wagner [MVP] Oct 6, 2003 #3 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? Click to expand... You can check in the 'Click' event if the key is pressed: \\\ If ((Control.ModifierKeys And Keys.Control) = Keys.Control Then ... End If ///
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? Click to expand... You can check in the 'Click' event if the key is pressed: \\\ If ((Control.ModifierKeys And Keys.Control) = Keys.Control Then ... End If ///