Input for WinForms | ComponentOne
C1.Win.Input Namespace / C1ComboBox Class / FormatError Event

In This Topic
    FormatError Event (C1ComboBox)
    In This Topic
    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 EventHandler(Of FormatErrorEventArgs)
    public event EventHandler<FormatErrorEventArgs> 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
    Gets or sets the error description shown as the tooltip in the ErrorProvider icon, if ErrorInfo.ErrorProvider property is set.  
    Gets the FormatInfo object that fired the event.  
    Gets the value that indicating formatting target (ForEdit or ForDisplay).  
    Gets or sets 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.  
    Gets the source value for formatting.  
    See Also