Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

MaskedTextBox is converting Mask to date format, but it shouldn't

$
0
0

H,

I am trying to force the user to input a specific format, the company Registration number (1234/123456/12). I've set the mask to 0000/000000/00 and every time I set the Text property of the Textbox the '/' are converted to '-'. I've released this is happening cause my format on windows is to use '-'. How can I force to use '/' and not to convert the symbol or recognize the format as a date. I have also tried to set the ValidatingType property, but that also didn't help.

Could anyone help me?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>