Jonas Stawski

Everything .NET and More

MaskedTextBox: stripping the masked characters

Using the new MaskedTextbox with WinForms and .net 2.0 is awesome, but by default the text property gives you the entered text with the masked characters. It is not wise to store those characters into a DB. By setting the TextMaskFormat to ExcludePrompAndLiterals the text property will return the entered text only.

Happy programing!

Add comment

biuquote
Loading