Expand|Select|Wrap|Line Numbers
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- Select Case True
- Case (Shift = acCtrlMask)
- Beep
- KeyCode = 0
- Case ((Shift = 0) And (KeyCode = vbKeyCancel Or KeyCode = vbKeyReturn Or KeyCode = vbKeyEscape))
- Beep
- KeyCode = 0
- End Select
- End Sub
Is there any way of catching the NEXT key after CTRL has been pressed down? I had thought the 'KeyCode' might be the next key, but it isn't! It is "17" which is the code for CTRL itself.
(Long time since I've been here! Hope you are all still there?!!)