How Do I Programmatically Turn a Pocket PC or CE .NET Device Keyboard On or Off?

Article ID: 76638404

Question

How Do I Programmatically Turn a Pocket PC or CE .NET Device Keyboard On or Off?

Answer

In some instances the user may want to enable/disable the use of the physical keyboard on a Pocket PC or CE .NET device.
 
Use the code below Programmatically Turn the Physical Keyboard on or off.

Note: This does NOT affect the Power or Scan Keys and some other special keyboard functions.

                                          void KeyboardOn( void )

                     {

                       EnableHardwareKeyboard(TRUE);

                     }

 

                       void KeyboardOff( void )

                     {

                      EnableHardwareKeyboard(FALSE);

                     }