I have a tab control with multiple tab pages.
I want to check if controls are visible on tab pages. This works OK if I'm on the tab page that has the control I want to check is visible.
TabPage1 - has a control called Panel1. Panel1 is set to be visible/invisible by the program
TabPage2 - other stuff
TabPage3 - other stuff
If I am on TabPage2 or 3, and check if Panel1 on TabPage1 is visible, it always returns false (even though the Panel might be visible if I switch to TabPage1)
Basically I need to know if the control e.g. Panel1 is visible whether or not I'm on TabPage1.
Is there a way to know if Panel1 WOULD BE visible when switching to TabPage1 (even though it's NEVER visible to user when on a TabPage other than TabPage1)