input mode for textbox on numeric

  • Thread starter Thread starter Irina Stanca
  • Start date Start date
I

Irina Stanca

I wanna set for a textbox the inputmode on numeric. I've found that i can
use Microsoft.Windowsce.forms reference and use the inputmodeeditor for a
certain textbox. I've added the reference, but the problem is that the i'm
using studio 2005 beta and the .dll file is from version 1.1. In the
documentation on microsoft.com i've read that this applies to net compact
framework 2.0. Isn't it supposed to work?
 
This depends what device you are targetting - if you are writing a
Smartphone 2003 application it will have been created as a .NETCF v1.0
application (Smartphone 2003 doesn't support .NETCF v2.0). For Pocket PC
2003, Windows Mobile 5.0 you can create either a v1.0 or v2.0 project. Only
v2.0 has the InputModeEditor.
However you can still perform the same function with v1.0 - either by
P/Invoking and sending the control an EM_SETINPUTMODE message, or use the
OpenNETCF.WindowsCE.Forms.InputModeEditor I wrote which works just like the
equivalent in .NETCF v2.0. This is a part of the SDF v1.3 -
www.opennetcf.org/sdf/ you can refer to the source for the class (C#) to
check the implementation.

Peter
 
Back
Top