Provides a user interface for indicating that a control on a form has an error associated with it.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Initializes a new instance of theclass attached to a container.
Initializes a new instance of the IContainer implementation.class attached to an
Gets or sets the rate at which the error icon flashes.
Gets or sets a value indicating when the error icon flashes.
Gets a value indicating whether the component can raise an event.(Inherited from Component.)
Gets or sets a value indicating the parent control for this.
Gets or sets the list within a data source to monitor.
Gets or sets the data source that themonitors.
Gets or sets the Icon that is displayed next to a control when an error description string has been set for the control.
Gets or sets a value that indicates whether the component is used in a locale that supports right-to-left fonts.
Gets or sets an object that contains data about the component.
Gets a value indicating whether a control can be extended.
Clears all settings associated with this component.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Returns the current error description string for the specified control.
Serves as the default hash function. (Inherited from Object.)
Gets a value indicating where the error icon should be placed in relation to the control.
Returns the amount of extra space to leave next to the error icon.
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Raises the RightToLeftChanged event.
Sets the error description string for the specified control.
Sets the location where the error icon should be placed in relation to the control.
Sets the amount of extra space to leave between the specified control and the error icon.
Thecomponent does not provide built-in support for accessibility clients. To make your application accessible when using this component, you must provide an additional, accessible feedback mechanism.
The following code example demonstrates using the Form that contains a TextBox control, a NumericUpDown control, and a ComboBox control, each validating its content, and an for each control. The example sets error icon options using the BlinkRate and BlinkStyle properties and the SetIconAlignment and SetIconPadding methods. The SetError method is called with or without appropriate error text during a control’s Validated event, depending upon the content in the control.class to notify the user of a data entry error. The example creates a
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.