KeyPreviewEventArgs.Create

Syntax

Create(Key: Integer; ShiftState: Integer);

Parameters

Key - code of the keyboard key.

ShiftState - code of pressing the auxiliary keys (SHIFT, ALT, and CTRL). Use ShiftState enumeration type to assign the required value. If it is not necessary to use auxiliary keys, 0 should be passed as a value.

Description

The Create constructor creates an argument of the OnKeyPreview event.

See also:

KeyPreviewEventArgs