How to set the Windows Mobile 6 IME mode (to numbers only)
- by Daniel Crenna
In Windows Mobile 5 one of the following methods works to set an input to numbers only:
// Managed
InputModeEditor.SetInputMode(textBox, InputMode.Numeric);
// Native Wrapper
InputModeSupport.SHSetImeMode(textBox.Handle, InputModeSupport.SHIME_MODE.SHIME_MODE_NUMBERS);
In Windows Mobile 6, neither works.
How do you set the IME to "Numbers Only" in WM 6.0 / .NET CF 3.5?