K
Krish
I have a user control in a form (form has a toolbar.)
In the user control I have some text boxes for which I need to do some
validations.
Which is the best event to do this? Ideally I should do the validation
on leaving the control itself and bring the focus back if the control
fails the validation.
Also, the validation should happen even if the user clicks on a
toolbar button after entering the data in a text box.
In the user control I have some text boxes for which I need to do some
validations.
Which is the best event to do this? Ideally I should do the validation
on leaving the control itself and bring the focus back if the control
fails the validation.
Also, the validation should happen even if the user clicks on a
toolbar button after entering the data in a text box.