C# – ny way i can remove the line which is shown in MASKEDTEXTBOX fields when we set the mask


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

Best Solution

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.