Event Reference > Quick Reference for All Events > KeyPress Event |
C1QueryFrame_KeyPress (KeyAscii As Long)
Arguments
KeyAscii is an integer representing an ANSI key code. KeyAscii is passed by reference; changing it sends a different character to the control. Changing KeyAscii to 0 cancels the keystroke so the control receives no character.
Description
The KeyPress event occurs when the user presses and releases a printable keyboard character.