tags:

views:

166

answers:

1

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???

+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
But that value can't be null and i don't want any prompchar in it so if there is any way
Mobin
An empty space works.
HardCode
Empty spaces do not work on VS 2008 for C#.
Jeremy