Anyone been able hide a tabpage?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Whether I set it on creation
TabPage page = new TabPage()
page.Hide()
page.Text = "Tab1"
tab.TabPage.Add(page)

or later

tab.TabPages[0].Hide()

neither seems to hide the tab page. Anyone else?
 
Hi,

I also use "Remove" method.
In fact, when you call "Hide" method, it only hides the fields contained in
the tabpage, but not the tabpage himself.

Regards,

Thomas.

éric said:
I usually use tab.TabPages.Remove(page)

paxvista said:
Whether I set it on creation:
TabPage page = new TabPage();
page.Hide();
page.Text = "Tab1";
tab.TabPage.Add(page);

or later:

tab.TabPages[0].Hide();

neither seems to hide the tab page. Anyone else?
 
Back
Top