System.Windows.Forms.ErrorProvider Class

Provides a user interface for indicating that a control on a form has an error associated with it.

See Also: ErrorProvider Members

Syntax

[System.ComponentModel.ComplexBindingProperties("DataSource", "DataMember")]
[System.ComponentModel.ProvideProperty("Error", "System.Windows.Forms.Control, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.ProvideProperty("IconPadding", "System.Windows.Forms.Control, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.ProvideProperty("IconAlignment", "System.Windows.Forms.Control, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[System.ComponentModel.ToolboxItemFilter("System.Windows.Forms")]
public class ErrorProvider : System.ComponentModel.Component, System.ComponentModel.IExtenderProvider, System.ComponentModel.ISupportInitialize

Remarks

System.Windows.Forms.ErrorProvider presents a simple mechanism for indicating to the end user that a control on a form has an error associated with it. If an error description string is specified for the control, an icon appears next to the control. The icon flashes in the manner specified by ErrorProvider.BlinkStyle, at the rate specified by ErrorProvider.BlinkRate. When the mouse hovers over the icon, a ToolTip appears showing the error description string.

Typically, you use System.Windows.Forms.ErrorProvider in association with data-bound controls. When using System.Windows.Forms.ErrorProvider with data-bound controls, you must specify the ErrorProvider.ContainerControl, either in the constructor or by setting the ErrorProvider.ContainerControl property.

Note:

The System.Windows.Forms.ErrorProvider component 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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0