To find the code for any key, put a Msgbox in the KeyPress Event. You will find that Ctrl+A thru CTRL+Z come thru Keypress as Keyascii values 1 thru 26. ESC comes thru as 27.
Private Sub Text1_KeyPress(KeyAscii As Integer)
MsgBox KeyAscii
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.