a special Format For MaskedTextBox [modified]
-
HI ALL ! i want to use a special format for MaskedTextBox , For Example an arabian Date like this :"yyyy/mm/dd".because Date Format for MaskedTextBox is a "christian format ".how can i do it ? thanks for any help ! s_mostafa_h -- modified at 14:54 Sunday 4th June, 2006
-
HI ALL ! i want to use a special format for MaskedTextBox , For Example an arabian Date like this :"yyyy/mm/dd".because Date Format for MaskedTextBox is a "christian format ".how can i do it ? thanks for any help ! s_mostafa_h -- modified at 14:54 Sunday 4th June, 2006
-
If you are using VS then in the design mode, you can click once on it, and a little arrow will apear, in there, you can set the Mask. On the window that opened you can Costum design your Mask. Good-Luck.
-
thanks , but i want to give an error message if the user enter a wrong format (for an arabian date like :14--/--/-- or yyyy/mm/dd). regards, s_mostafa_h
-
Can't you use a DateTimePicker? it's alot easyer! You either can open the Calander, or either you can choose the year, month or day like list-box, very comfterbale (bahhh don't know english), and is set to your home language.
At design time, in the property window, set the mask property to the mask you want to set.That's it... Wasif Ehsan
-
At design time, in the property window, set the mask property to the mask you want to set.That's it... Wasif Ehsan