Page 1 of 1

ErrorProvider Control: Please provide the Information if there is an active Error

Posted: Fri Aug 11, 2017 1:23 pm
by Jehoschua
Good evening
The ErrorProvider Control is a really nice solution to display missing / invalid data.
Unfortunately, the ErrorProvider Control does not offer a property with the information if it is active on any control.
Therefore, we have to do the error bookkeeping in parallel.

Could you please add one of those properties?:
  • A boolean which indicates that there is still one Control with an assigned ErrorProvider Control
  • The number of Controls which have an assigned ErrorProvider Control
  • A list of all Controls which have an assigned ErrorProvider Control
This would eliminate the need to code the bookkeeping.

Thanks a lot for investigating this wish.
Kind regards,
Thomas

Re: ErrorProvider Control: Please provide the Information if there is an active Error

Posted: Fri Aug 11, 2017 1:45 pm
by davidc
This is a Microsoft .NET control and not something we created.

You could create a function the iterates through the form's controls and check if it has an error message by using the ErrorProvider's GetError method.