HardwareKeys Enumeration
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Specifies the hardware buttons on a Pocket PC that can be accessed by the HardwareButton class.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
| Member name | Description | |
|---|---|---|
![]() | None | Specifies that no actual hardware buttons are associated with this HardwareButton instance. |
![]() | ApplicationKey1 | Specifies the hardware button that corresponds to application 1. |
![]() | ApplicationKey2 | Specifies the hardware button that corresponds to application 2. |
![]() | ApplicationKey3 | Specifies the hardware button that corresponds to application 3. |
![]() | ApplicationKey4 | Specifies the hardware button that corresponds to application 4. |
![]() | ApplicationKey5 | Specifies the hardware button that corresponds to application 5. |
![]() | ApplicationKey6 | Specifies the hardware button that corresponds to application 6. |
| Exception | Condition |
|---|---|
| NotSupportedException |
The form or control associated with a member of this enumeration can receive the KeyDown and KeyUp events when the corresponding hardware button is pressed.
Note |
|---|
The hardware buttons correspond to the application keys on a Pocket PC. The application keys are not included in the core key set, so their hardware key mapping may vary from one keyboard layout to the next. Only the default hardware key mapping on the device is supported. |
This enumeration is not supported and throws a NotSupportedException on the Smartphone and other Windows CE devices that are not Pocket PCs.
The following code example uses the AssociatedControl and HardwareKey properties to display a form whenever the first and fourth buttons on Pocket PC are pressed. This code example is part of a larger example provided for the HardwareButton class.
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
