Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The ErrorProvider component indicates to the user that another control has an error associated with it. ErrorProvider is an extender provider, so it adds a new Error property to the other controls on its form. For example, if the ErrorProvider is named ErrorProvider1, each control on the form gets a new property named "Error on ErrorProvider1." At design time, use the Properties window to set or clear this value.
To associate an error with a control at runtime, use the ErrorProvider's SetError method. The ErrorProvider automatically displays a red circle containing an exclamation mark next to the control. If the user hovers the mouse over the circle, the ErrorProvider displays a tooltip giving the error text.