ComponentOne Input for WinForms
C1.Win.C1Input.4.8 Assembly / C1.Win.C1Input Namespace / C1Label Class / FormatError Event

In This Topic
    FormatError Event (C1Label)
    In This Topic
    Error occured while formatting the stored value.
    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