Question on KeyDown Event

  • Thread starter Thread starter John Lane
  • Start date Start date
J

John Lane

In the KeyDown Event, is there a trick to trap a control key plus another key
sequence, say for instance I wanted to trap "Ctl+T"? Or do I have to save
them sequentially and figue it out in progamming code? Thanks.
 
Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyT And (Shift And acCtrlMask) = acCtrlMask Then
msgbox "You just hit Ctrl-T"
End If
End Sub
 
Back
Top