Gets the keyboard code for a KeyEventArgs.KeyDown, KeyEventArgs.KeyPress or KeyEventArgs.KeyUp event.
Syntax
Visual Basic (Declaration) | |
---|
Public Property KeyCode As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As KeyEventArgs
Dim value As Integer
instance.KeyCode = value
value = instance.KeyCode |
C# | |
---|
public int KeyCode {get; set;} |
C++/CLI | |
---|
public:
property int KeyCode {
int get();
void set ( int value);
} |
Property Value
A Keys value that is the key code for the event.
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0
See Also