How to leave an invisible TabPage inside a TabControl?

12

How can I make a particular TabPage invisible inside a TabControl?

    
asked by anonymous 13.05.2015 / 21:28

2 answers

10

Invisible is impossible, but it can have the same effect by removing and adding TabPage to TabControl :

tbControl.TabPages.Remove(tabPage);
tbControl.TabPages.Add(tabPage);
    
13.05.2015 / 21:34
5

You can unlink TabPage from TabControl in question through Parent property, without having to remove it:

suaTabPage.Parent = null;

And to bind, just indicate TabControl :

suaTabPage.Parent = tbControl;
    
08.07.2017 / 04:48