dotnetmonitor.com

 
Index
Previous
Next

 

You need to create a class that inherits from MaskDescriptor. Also, if you want Type validation support, youll need to implement a public static Parse method that takes a string.

 

The MaskedTextBox sample app in the SDK shows this. See the IPv5 and IPv5MaskDescriptor classes.

You can download the sample from:

http://msdn2.microsoft.com/en-us/library/ka7h9fze.aspx

How do I data bind to a MaskedTextBox?
How can I use the MaskedTextBox to tell if a date is between a certain range?
How do I make the MaskedTextBox always overwrite like in Access?
How can I tell if the MaskedTextBox is in insert mode?
How can I access the pre-defined masks from other cultures?