How to have numeric keyboard popup to input in TextBox on Windows Mobile 6.53? (C++ vs2008)
When one clicks in a text box, the numeric keypad should popup – not the full keyboard.
I searched for other threads, but a solution does not seem to exist. (http://msdn.microsoft.com/en-us/library/dd183783(v=vs.90).aspx)
This code fails – it does not bring up the numeric keypad, but the full qwerty keyboard:
hwndCtl = GetDlgItem(hwndDlg, IDC_PASSWORD);
SHSetImeMode(hwndCtl, SHIME_MODE_NUMBERS);
This does not compile – it does not recognize Microsoft.WindowsCE.Forms (I am unable to find the header file to include for this, if it exists):
Microsoft.WindowsCE.Forms::InputModeEditor.SetInputMode(hwndCtl,Microsoft.WindowsCE.Forms.InputMode.Numeric);
error C2065: ‘Microsoft’ : undeclared identifier
Is there a way to do this without writing my own dialog?
I ended up creating my own numeric keypad since I did not receive any replies for a long time.