I have a TabControl that contains several tabs. Each tab has one UserControl on it. I would like to check the visibility of a control x on UserControl
x
UserControl
Please try this:
bool ControlIsReallyVisible(Control C) { if (C.Parent == null) return C.Visible; else return (C.Visible && ControlIsReallyVisible(C.Parent)); }