This documentation is archived and is not being maintained.

KeyEventArgs.KeyValue Property

Gets the keyboard value for a KeyDown or KeyUp event.

[Visual Basic]
Public ReadOnly Property KeyValue As Integer
[C#]
public int KeyValue {get;}
[C++]
public: __property int get_KeyValue();
[JScript]
public function get KeyValue() : int;

Property Value

The integer representation of the KeyData property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

KeyEventArgs Class | KeyEventArgs Members | System.Windows.Forms Namespace | KeyData | KeyCode

Show: