Export (0) Print
Expand All

ValidationError Event

Visual Studio .NET 2003

Occurs when the Masked Edit control receives invalid input, as determined by the input mask.


Private Sub ctlname_ValidationError(InvalidText As String; StartPosition As Integer)


InvalidText is the value of the Text property, including the invalid character. This means that any placeholders and literal characters used in the input mask are included in InvalidText.

StartPosition is the position in InvalidText where the error occurred (the first invalid character).

See Also

AllowPrompt Property | AutoTab Property | Mask Property | Text Property (MaskedEdit Control) | ValidateControls Method (ActiveX Controls)

Applies To: Masked Edit Control

© 2015 Microsoft