Gets or sets the data type used to verify the data input by the user.
A Type representing the data type used in validation. The default is a null reference (Nothing in Visual Basic).
The current text in the control will be validated either when the user leaves the control. You can determine whether or not the data fails validation by monitoring for the TypeValidationCompleted event. MaskedTextBox will only perform the check against ValidatingType if MaskCompleted is true.
If you want to use your own custom data types with ValidatingType, you must implement a static Parse method that takes a string as a parameter. This method must be implemented with one or both of the following signatures:
public static Object Parse(string)
public static Object Parse(string, IFormatProvider)
MaskedTextBox Class | Resco.Controls.MaskedTextBox Namespace