Occurs when the Masked Edit control receives invalid input, as determined by the input mask.
Syntax
Private Sub ctlname_ValidationError(InvalidText As String; StartPosition As Integer)
Remarks
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).