ControlKeyStates Enumeration

Defines the states of specific control keys, such as the ALT key, CTRL key, SCROLL key, and CAPSLOCK key.


Namespace: System.Management.Automation.Host
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As ControlKeyStates

[FlagsAttribute] 
public enum ControlKeyStates
/** @attribute FlagsAttribute() */ 
public enum ControlKeyStates
FlagsAttribute 
public enum ControlKeyStates

Member nameDescription
CapsLockOnThe CAPSLOCK key is turned on.
EnhancedKeyThe key is enhanced.
LeftAltPressedThe left ALT key is pressed.
LeftCtrlPressedThe left CTRL key is pressed.
NumLockOnThe NUMLOCK key is turned on.
RightAltPressedThe right ALT key is pressed.
RightCtrlPressedThe right CTRL key is pressed.
ScrollLockOnThe SCROLLLOCK key is turned on.
ShiftPressedThe SHIFT key is pressed.

 

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft