The Error Provider control is an extender provider that lets you add properties to other controls.When you use the Error Provider, you only need to add one to your form.Note: 2008 and older issues are only available as files.

The Validated event is fired when the input is accepted as valid.

The Validating event is the one that handles most of the validation logic.

Setting this property to False allows the validation process to continue.

A problem with this approach is that if the users enter an invalid value and tries to close the application, by default, they won't be able to do it. NET 2.0, we have the Auto Validate property on the Form class that lets you specify exactly what the behavior should be when the validation error occurs at the control level.

The refining of the data is done later, when the data is passed to another layer for processing.

In this article, I will cover the principles and techniques built into Microsoft.Validation means that any data input meets the application requirements in order to ensure consistency and correctness of the data.There is a deep discussion about when, where and how this validation should be done.It maintains a mapping of error messages associated to each control in the form.If you set an error message for a control, then an error icon is shown next to the control and will also display a tooltip when you hover the mouse over the error icon.To unblock a file, right click on it, and select properties, and then select the ‘unblock’ button.