Provides properties for accessing the current state of the keyboard, such as what keys are currently pressed, and provides a method to send keystrokes to the active window.
| C# | Visual Basic |
public class Keyboard
Public Class Keyboard
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Keyboard()()()() | Initializes a new instance of the Keyboard class | |
| AltKeyDown |
Gets a Boolean indicating if the ALT key is down.
| |
| CtrlKeyDown |
Gets a Boolean indicating if a CTRL key is down.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| SendKeys(String) |
Sends one or more keystrokes to the active window, as if typed on the keyboard.
| |
| ShiftKeyDown |
Gets a Boolean indicating if a SHIFT key is down.
| |
| ToString()()()() | (Inherited from Object.) |
| Object | |
| Keyboard | |