KeyEventArgs.VirtualKey KeyEventArgs.VirtualKey KeyEventArgs.VirtualKey KeyEventArgs.VirtualKey Property

Definition

Gets the virtual key that maps to the key that was pressed.

public : VirtualKey VirtualKey { get; }
VirtualKey VirtualKey();
public VirtualKey VirtualKey { get; }
Public ReadOnly Property VirtualKey As VirtualKey

Property Value

The virtual key value.

Remarks

Windows 10 Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.

Windows Phone This API is supported in native apps only.

See also