Reputation: 1639
I have a Windows Mobile Desktop Application that have some text fields which will only accept numeric values. I need to activate the number keys on the phone when those text boxes has the focus.
I'm not being able to find any solution on that. Pls help
Upvotes: 0
Views: 715
Reputation: 1301
You could also try this
InputModeEditor.SetInputMode(textBox, InputMode.Numeric);
Upvotes: 0
Reputation: 67178
Daniel Moth has an example of switching the SIP to numeric mode (in C#, you didn't note your language choice) on his blog.
Upvotes: 1