KeyPress Event
Syntax
Sub ControlName_KeyPress(KeyAscii)
Applies To
Purpose
Fires when a KeyDown message generates a key while a control is active.
Remarks
For more information, refer to Visual Basic help.
Parameters
KeyAscii As Integer
The ASCII value of the pressed key. In Visual Basic, use the Chr() function to translate KeyAscii into a character.