How can I determine when the left mouse button and shift key are pressed at the same time?
Printable View
How can I determine when the left mouse button and shift key are pressed at the same time?
Put this in whatever event you'd like:)Code:If Me.MouseButtons.Left And Me.ModifierKeys = Keys.Shift Then
msgbox("You pressed the shift key and click the left mouse button")
End If
I wound up putting this code in the mousedown event of my datagrid control:
If e.Button = MouseButtons.Left And Me.ModifierKeys =
_Keys.Shift Then
MsgBox("You pressed Shift + Left Mouse Button")
End If