Click to See Complete Forum and Search --> : Format textbox


Kain
May 18th, 2001, 04:36 PM
Hi,
I d like to know how to have a format for a textbox
for example, i want a textbox which contains only number like 0.00...so the user can t use caracter and if he push on "." he automaticly add the ciffer to the end of number...
how can i format it? can i declare it or i have to do it all by myself?
thx a lot

ecannizzo
May 18th, 2001, 04:45 PM
You can look into using the masked edit text box.

Hope this helps.
Erica

cksiow
May 18th, 2001, 07:12 PM
refer http://vblib.virtualave.net, there is a function AllowsOnlyFloat in the vbKeyboard which only allow user enter the floating point value, call the function in KeyPress event for the text box and it should do the rest.

HTH