C control validating event

We will implement the business rule to allow test appointments to be setup on weekdays only using validation on the form.

c control validating event-16

You will find as you tab through the textboxes on the form, that you will get the error icon appearing unless you enter data in the right format.

Hovering the mouse over the error icon will tell you what is wrong and how to fix it.

You need to set the Data Source, Data Member and Container Control properties of the Error Provider control to set the error for a databound control.

To display the dataset column error, invoke the Set Column Error method of the Error Provider.

You can customize the Error Provider control to set the Blink Rate and Blink Style.

You can also display a custom error image instead of the default image. This article should not be construed as a best practices white paper.

However, I also have a bunch of custom controls -they inherit from User Control class- that are like self-contained entities which are composed of multiple stock controls.

When I tried to drop the validator component on my User Control I got a designer exception complaining that it was not a Form, some casting problem.

Text Box Friend With Events txt Last Name As System.

Tags: , ,