Assembly: System.Windows.Forms (in system.windows.forms.dll)
Property Valuetrue if the formatted input string can be converted into the type specified by the ValidatingType property; otherwise, false.
The IsValidInput property indicates the success of the Parse method found in the Type represented by the ValidatingType property. This type must contain Parse method(s) having one or both of the following signatures:
public static Object Parse(string)
public static Object Parse(string, IFormatProvider)
Parse is called before the MaskedTextBox control raises the TypeValidationCompleted event. This method is invoked with the contents, minus the prompt characters, of the Text property of the MaskedTextBox class. If successful, it returns the converted object; otherwise, it returns a null reference (Nothing in Visual Basic).
For more information about the type validation process, see the TypeValidationCompleted event. For an example of how to implement parsing on a custom data type, see MaskedTextBox Control Sample.
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.