Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
705
best way to hide and show tabs
posted

I have a tab control in a C# app and I'm trying to hide and show tabs based off of various user selections off of combo boxes, etc. 

The problem is I have 8 tabs.  I hide/show all the tabs in one routine.  For some reason I am having controls from a tab that should be hidden, show up on one of the visible tabs.  I'm not sure what the problem would be.  Here is the code I am using.

myUltraTab.Tabs["tab1"].Visible = true;
myUltraTab.Tabs["tab2"].Visible = false;
myUltraTab.Tabs["tab3"].Visible = false;
myUltraTab.Tabs["tab4"].Visible = true;
myUltraTab.Tabs["tab5"].Visible = false;
myUltraTab.Tabs["tab6"].Visible = true;
myUltraTab.Tabs["tab7"].Visible = true;
myUltraTab.Tabs["tab8"].Visible = false;

Parents
No Data
Reply Children
No Data