Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Detecting the visibility of a panel for manual refreshing

$
0
0

Hi forums,

I have a form with multiple tabs.  Each tab has a custom control that needs to be resized manually.  Right now, I have a static event that lives in the parent form that fires a resized event when Form.ResizeEnd is called.  This works fine, but I'm finding that I'm spending time updating the panels that are not visible.  The Control.Visible isn't enough, because they ARE visible, they just can't be seen, as they are on seperate tabs.

One solution is to pass the ResizeEnd event to the tab control, and have it update the proper panel, but I thought just maybe...Is there a way to find out if a control is ACTUALLY visible?  Any other solutions out there?

Thanks!


Viewing all articles
Browse latest Browse all 12583

Trending Articles