KeyDown event (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax void KeyDown (short* KeyCode, short Shift);

Overview:  Refer to Detecting Events.

Remarks

Occurs when the user presses a key while the Main Control has the focus. (To interpret ANSI characters, use the KeyPress event.)

See Also

Elements:  KeyUp event, KeyPress event

Topics:  Working with the Control: General Behavior