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

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 6 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
Jehoschua
Posts: 64
Last visit: Fri Mar 01, 2024 3:24 am

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

Post 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
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

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

Post 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.
David
SAPIEN Technologies, Inc.
This topic is 6 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked