Instead of 9 you need 0, due to 9 valid spaces as valid characters
The US Social Security number mask will look like this:
myMaskedTextBox.Mask = "000-00-0000";
In addition, you must ensure that the property is ResetOnSpaceset to false.
source
share