Handling Pocket PC Hardware Keys

A Pocket PC does not have a keyboard and relies on the use of a stylus and the SIP for most of the input from the user. A Pocket PC device does have some hardware keys available to it. Figure 4-9 shows a typical example of the hardware keys on a Pocket PC device.

Pocket PC device hardware keys.

Figure 4-9. Pocket PC device hardware keys.

It is possible to capture these keys in the KeyDown event that occurs when the user presses these keys.

The Compaq iPAQ has a central pad that generates the following five different types of key codes:

  • Keys.Up is triggered when the top of the pad is pressed.

  • Keys.Down is triggered when the bottom of the pad is pressed. ...

Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.