KeyPress event (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax void KeyPress (short* KeyAscii);

Overview:  Refer to Detecting Events.

Remarks

Occurs when the user presses and releases an ANSI key.

See Also

Elements:  KeyDown event, KeyUp event

Topics:  Working with the Control: General Behavior