KeyDown, KeyUp Events

3D Graph Control

KeyDown, KeyUp Events

Syntax

Sub ControlName_KeyDown( KeyCode As Integer, Shift As Integer)

Sub ControlName_KeyUp( KeyCode As Integer, Shift As Integer)

Applies To

CWGraph3D

Purpose

Generates the KeyUp event when you release a key while the control has the input focus.

Generates the KeyDown event when you press a key while the control has the input focus.

Remarks

For more information, refer to Visual Basic help.

Parameters

KeyCode As Integer

A code representing the key that was pressed on the keyboard rather than the ASCII value of the key. For example, pressing the <A> key produces the value 65. Pressing <#> or <Shift-3> produces the code for "3".

Shift As Integer

The state of the <Shift> key, <Alt> key, and <Ctrl> key. The Shift argument can be any combination of the following values: 1 for <Shift> , 2 for <Ctrl> , or 4 for <Alt> . For example, if the <Shift> and <Ctrl> keys are pressed, the value is 3 (1 + 2).

See Also

KeyPress