KeyPress Event
Syntax
Sub ControlName_KeyPress( KeyAscii As Integer)
Applies To
Purpose
Generated when the control has focus and you press a key.
Remarks
For more information, refer to Visual Basic help.
Parameters
KeyAscii As Integer
The ASCII value of the key that was pressed. In Visual Basic, use the Chr() function to translate KeyAscii into a character.