
November 5, 2009 08:53 by
Brian Keating |
One approach for validating child controls on windows froms is to
Validation.
- Add a Validated event handler to all child controls you're interested in.
- On a button event handler call this.ValidateChildren();
This will ensure the validation routine on all child controls will be called, if for example you've added an ErrorProvider control extender to your form you can set it up in the validated event handlers.
About Brian Keating
Professional Software Developer, .NET / C++ / Java View all posts by
Brian Keating →