TabPage and ErrorProvider
C#
1
Posts
1
Posters
0
Views
1
Watching
-
The default implementation of a tab page is to include the code for it in the form/class that contains the actual tab control. However I have subclassed the TabPage class and put my code into this class and then include this as a new tab page into the tab control. However, since tabpage does not inherit from ContainerControl I can not use the ErrorProvider control without making my controls public or exposed via a property and fire an event to the class containing the tab control. This class then calls SetError on the ErrorProvider with the information from the event. Has anyone done anything like this and found a better way to implement the ErrorProvider?