How to leave an invisible Tabpage inside a Tabcontrol?

Asked

Viewed 732 times

12

How can I leave a certain invisible Tabpage inside a Tabcontrol ?

2 answers

10


Making invisible is impossible, but you can have the same effect by removing and adding to TabPage at the TabControl:

tbControl.TabPages.Remove(tabPage);
tbControl.TabPages.Add(tabPage);

5

It is possible to unlink the TabPage of TabControl concerned through ownership Parent, without having to remove it:

suaTabPage.Parent = null;

And to link, just indicate the TabControl:

suaTabPage.Parent = tbControl;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.