I have a masked text box control on my windows form which I want to use in order to display a SSN to the user. I chose a predefined mask description in the properties windows and it looks as follows: 000-00-0000.
When I move a value that has leading zeroes to my mask text box, however, it drops the leading zeroes. For example, if I move a value of '000001234' to the mask text box, it displays it as follows: 123-4_-____.
I works well if there are no leading zeroes. If I move the value '123456789' to the mask text box for example, it displays it correctly as follows: '123-45-6789'.