You can use the Windows.Forms.Control.ModifierKeys property:
\\\
If (Windows.Forms.Control.ModifierKeys And Keys.Control) <> 0 Then
Debug.WriteLine("Ctrl is pressed")
End If
If (Windows.Forms.Control.ModifierKeys And Keys.Shift) <> 0 Then
Debug.WriteLine("Shift is pressed")
End If
If (Windows.Forms.Control.ModifierKeys And Keys.Alt) <> 0 Then
Debug.WriteLine("Alt is pressed")
End If
///
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.