KeyEventArgs.VirtualKey Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the virtual-key that maps to the key that was pressed.
public:
property VirtualKey VirtualKey { VirtualKey get(); };
VirtualKey VirtualKey();
public VirtualKey VirtualKey { get; }
var virtualKey = keyEventArgs.virtualKey;
Public ReadOnly Property VirtualKey As VirtualKey
Property Value
The virtual-key that maps to the key that was pressed.