SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Invalid input is detected, based on the Mask property.
VB.NET | Private Sub object_ValidationError(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ValidationError |
VB | Private Sub object_ValidationError(ByVal Text As String, ByVal Failure As SftMaskFailureConstants, ByVal KeyAscii As Integer, ByVal InvalidPos As Long) |
C#.NET | void object_ValidationError(object sender, EventArgumentType e); |
VC++ | void OnValidationErrorobject(_bstr_t Text, enum SftMaskFailureConstants Failure, short KeyAscii, long InvalidPos); |
C | HRESULT OnValidationErrorobject(BSTR Text, enum SftMaskFailureConstants Failure, short KeyAscii, long InvalidPos); |
object
Text
The current contents of the control.
Failure
Indicates the reason why the input is invalid.
Failure | Value | Description |
---|---|---|
failureSftMaskNone | 0 | Reserved for future use. |
failureSftMaskCustom | 1 | The contents are valid, but the contents were rejected by the CustomValidation event. |
failureSftMaskDelayed | 2 | The control has lost the input focus. The contents are invalid. |
failureSftMaskValidProp | 3 | The Contents.ValidMsg or ValidMsg property is determining the validity of the contents. The contents are invalid. |
failureSftMaskInput | 4 | The character KeyAscii typed is invalid at position InvalidPos. |
failureSftMaskDelete | 5 | One or more characters could not be deleted at position InvalidPos. |
failureSftMaskDateInvalid | 6 | The contents match the mask, but the date is invalid or incomplete. |
failureSftMaskDateTimeRange | 7 | The contents match the mask, but the date is outside the valid range (Calendar.FirstDate, LastDate). |
KeyAscii
The character entered which is invalid. This value is 0 if no character has been entered or no character is associated with the current failure reason.
InvalidPos
The input position where invalid input was detected. This value may be -1 if no input position is associated with the current failure reason.
The ValidationError event occurs when invalid input is detected, based on the Mask property.
The ValidationError occurs whenever an action results in invalid input.
Once valid input is detected, the CustomValidation event occurs.
See Also SftMask Events | Object Hierarchy