PDA

Click to See Complete Forum and Search --> : mask edit box help!


ghoff12
Nov 22nd, 2000, 09:34 AM
I want the mask of the edit box to be up to "#######"

However, if the user only enters in two numbers, i only want it to be "##". This way, there are not extra spaces in the edit box. Does anyone know a quick solution on how i can create it dynamically.

I have been trying to create it on the key_press event of the edit box, but for some reason, its really not working like i want it. anyone, with any ideas would be helpful.

Thanks in advance

Fox
Nov 22nd, 2000, 09:59 AM
Im unsure what you mean.. did you try to set the "PasswordChar" property to '#' ?

ghoff12
Nov 22nd, 2000, 10:51 AM
No, i'm using a mask edit box. I want to set the mask propety of the edit box to #. That way the user can only enter in numbers. If i specify it at design time, it has blank spaces in the edit box.