Defines error image handling.
Get
| C# | SftMaskErrorHandlingConstants Style = object.ErrorHandling; |
| VB.NET | Style = object.ErrorHandling As SftMaskErrorHandlingConstants |
| C++ | enum SftMaskErrorHandlingConstants Style = object->ErrorHandling; enum SftMaskErrorHandlingConstants Style = object->GetErrorHandling(); |
| C | HRESULT object->get_ErrorHandling(enum SftMaskErrorHandlingConstants* Style); |
| VB | Style = object.ErrorHandling As SftMaskErrorHandlingConstants |
Put
| C# | SftMaskErrorHandlingConstants object.ErrorHandling = Style; |
| VB.NET | object.ErrorHandling = Style As SftMaskErrorHandlingConstants |
| C++ | enum SftMaskErrorHandlingConstants object->ErrorHandling = Style; void object->PutErrorHandling(enum SftMaskErrorHandlingConstants Style); |
| C | HRESULT object->put_ErrorHandling(enum SftMaskErrorHandlingConstants Style); |
| VB | object.ErrorHandling = Style As SftMaskErrorHandlingConstants |
object
Style
Defines error image handling.
| Name | Value | Description |
|---|---|---|
| errorHandlingSftMaskDelayed | 0 | Delayed - The error image is only updated once the Contents.Valid or Contents.ValidMsg properties are retrieved. |
| errorHandlingSftMaskImmediate | 1 | Immediate - The error image is always updated immediately as the control contents change. |
The ErrorHandling property defines error image handling.
The ImageEmpty, ImageInvalid, ImageRequired, ErrorPosition and ErrorHandling properties are used to control the appearance and behavior of the error image.
If the ImageRequired property defines a valid image, the error image is immediately shown when data entry is required (depending on the AllowEmpty and AllowEmptyWithoutMask properties). The ErrorHandling property has no effect in this case.
See Also SftMask Object | Object Hierarchy