Search code examples
c#.netwinformstabcontroltabpage

Disable and hide a TabPage


How I can make a TabPage in a TabControl visible/hidden and enabled/disabled?


Solution

  • You maybe missing the obvious because neither of the following removes/changes the look of the tab

            tabPage1.Enabled = false; // this disables the controls on it
            tabPage1.Visible = false; // this hides the controls on it.
    

    Neither remove the tab from the list at the top.