Discussion in 'Questions (Windows Mobile)' started by gjoisa, May 11, 2008.
how to restrict the textbox input value to numeric and input string length ? :sign0085:
Simpler way is to check if the string is made only of numbers, and to check the lenght of the entered string...
But that is only done on the text changed event...
To restrick the input itself, I guess some workaround is possible, but a custom DLL would be more eficient...
it can not solve my problem . Previously i had devoloped a program for palm . There is such facility , we can restrict the input to numeric and string length .
I will try to make a simple dll... Any more desires, text box wise?
Forgot to ask, are targeting the device, the desktop, or both?
Hi gjoisa, as cableguy mentioned solutions, we have already discussed this here.http://www.basic4ppc.com/forum/questions-help-needed/125-textbox-input-filter-2.html
i am targetting only device .
just have a look at filippos fgControls.dll (http://www.basic4ppc.com/forum/additional-libraries/1238-fgcontrols-library.html).
The feature fgTextBox allows you to define an input mask for a textbox so the user can only enter data of a special length or fomat.
I was almost sure that the wheel had already been invented....But still I was going for it...
Now I see there's no need...
Have fun gjoisa
... sometimes it may be good to have an alternative ...
Thank you Specci48 and CableGuy . Very good solution . It solved my problem . Thank you again for your timely response .:sign0098: