Hide and Visible have no effect.

this.tabControl1.TabPages[iField].Visible = false;
this.tabControl1.TabPages[iField].Hide();


I hear that the TabControl in the .NET framework is a wrapper of the Tab
control in the Common Control Library. I read a posting that stated:

"the only way to do what you want to achieve is by using
the horribly and unfriendly method of removing and adding tabs."

http://tinyurl.com/2jb3v


Thanks in advance for any tips or suggestions,

-Ed

Re: Is there really no way to hide a TabPage? by hirf-spam-me-here

hirf-spam-me-here
Sat Feb 28 10:35:56 CST 2004

* Ed Sutton <S_P_A_M_esutton@nomadics.com> scripsit:
> Hide and Visible have no effect.
>
> this.tabControl1.TabPages[iField].Visible = false;
> this.tabControl1.TabPages[iField].Hide();

Right. There is no easy way to do that.

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Website Address Changed!