How to hide a tab (and not just disable it) in .NET CF

When a specific TabControl tab is selected, I will currently disable all other tabs using TabControl.Enabled = false. I would also like to hide them so as not to confuse users.

Is there a way to do this without deleting the tabs and then adding them back?

+3
source share
2 answers

You can try the .Hide () or .Visible = false method, however I have not tested it yet.

After a small number of searches, it seems that individual tabs cannot be hidden. They must be removed and re-added.

http://social.msdn.microsoft.com/forums/en-US/winforms/thread/aae9149c-4677-46df-b4a2-2f7ec34290a7

www.syncfusion.com/FAQ/windowsforms/faq_c93c.aspx#q957q

+5

, TabPages TabControl. TabPage, IDE, , TabPages.

:

Me.tabControl.TabPages.Remove(Me.tabpageMyNiceTab)

:

Me.tabControl.TabPages.Add(Me.tabpageMyNiceTab)
+4

Source: https://habr.com/ru/post/1710248/


All Articles