Aan Aan - 19 days ago 5
C# Question

Disable and hide a TabPage

How I can make a

TabPage
in a
TabControl
visible/hidden and enabled/disabled?

Answer

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.

Comments