InputPanel for WinForms | ComponentOne
C1.Win.C1InputPanel.4.5.2 Assembly / C1.Win.C1InputPanel Namespace / InputOption Class / ErrorText Property

In This Topic
    ErrorText Property (InputOption)
    In This Topic
    Gets or sets an error description string with optional HTML tags.
    Public Overridable Property ErrorText As String
    public virtual string ErrorText {get; set;}

    Setting this property to a non-empty string causes the component to be highlighted. The message is displayed as a tooltip when the user moves the mouse over the component.

    Setting this property to an empty string removes the higlight and restores the original tooltip text (ToolTipText).

    The example below uses the Validating event to set the error property on an InputNumericBox when the value entered is not an even number.
    See Also