The line that appears when we set the mask of a masked text box in winforms for c# does not seem attractive at all to me .I want to know if there is any way i can set the mask of the masked text box and that line is not shown???
views:
166answers:
1
Q:
Is there any way i can remove the line which is shown in MASKEDTEXTBOX fields when we set the mask?
+3
A:
In VB.NET, the MaskedTextBox has a property called PromptChar (I'm sure it's the same in C#). It defaults to the underscore that you see. Change that.
HardCode
2009-03-01 04:51:14
But that value can't be null and i don't want any prompchar in it so if there is any way
Mobin
2009-03-01 05:03:13
An empty space works.
HardCode
2009-03-01 05:05:42
Empty spaces do not work on VS 2008 for C#.
Jeremy
2009-09-22 09:26:09