How can I determine when the left mouse button and shift key are pressed at the same time?
A cynic knows the price of everything but the value of nothing.
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 Put this in whatever event you'd like
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
Forum Rules