By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,722 Members | 1,354 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,722 IT Pros & Developers. It's quick & easy.

Calling validating event in a loop through controls

P: n/a
Visual basic 2005, .net 2.0:

I pass my form's collection of controls to a public sub in a module
that loops through and checks for any ErrorProvider text. The sub
returns all the ErrorProvider strings that were found for display in a
msgbox to let the user know that there were data errors found. This
works great, however, sometimes a user does not ever enter a certain
control, therefore that control's validating event is never called, so
my Error collecting sub will not return anything for this control. I
need to be able to loop through all controls on a form and call each
control's validating event. I need this code to be reusable for
multiple forms. Any suggestions.

Apr 12 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.