Posted on 2008-10-12
Hi, I'm using VB 2005, WinForms. I have a question about the ErrorProvider Control. -- Lets assume I've used the ErrorProvider in my Form on 15 different Controls, so that I can validate the input of each Control (assume it all works well). I don't want to add a new record unless all the validations have passed my requirements. So, how do I assess whether there are any validation tests that have not yet been addressed. In other words, how can I tell that an ErrorProvider is still alerting my User that a problem exists with one of the Controls?
Is there some sort of ErrorProvider.Count property (which I know is not available) or something similar that I can use to determine if I still have problems that need to be addressed?
By the same token, I want to be able to know that if no problems exist, I can go ahead and perform my record insertion into my DataBase.
So, in essence, I'm looking for some sort of "flag" that the ErrorProvider is still alerting of errors on the Form.