ComponentOne MultiSelect for WinForms
FormatError Event (C1TextBox)

C1.Win.C1Input Namespace > C1TextBox Class : FormatError Event
Occurs when the control receives data that cannot be formatted according to the current format and edit mask settings.
Syntax
'Declaration
 
Public Event FormatError As FormatErrorEventHandler
public event FormatErrorEventHandler FormatError
Event Data

The event handler receives an argument of type FormatErrorEventArgs containing data related to this event. The following FormatErrorEventArgs properties provide information specific to this event.

PropertyDescription
Error description shown as the tooltip in the ErrorProvider icon, if ErrorInfo.ErrorProvider property is set.  
FormatInfo object that fired the event.  
Formatting target (ForEdit or ForDisplay).  
The text to show in the control. Your code in FormatError event can set this argument to a text you want to show in the control in case of a formatting error.  
Source value for formatting.  
See Also