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?
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
, TabPages TabControl. TabPage, IDE, , TabPages.
:
Me.tabControl.TabPages.Remove(Me.tabpageMyNiceTab)
Me.tabControl.TabPages.Add(Me.tabpageMyNiceTab)
Source: https://habr.com/ru/post/1710248/More articles:The most efficient way to decrypt data when the encryption method is unknown? - language-agnosticПользовательская сериализация с использованием DataContractSerializer - c#регулярное выражение, чтобы превращать URL-адреса в ссылки, не вступая в связь с существующими ссылками в тексте - phpWhat is the pro / minus of push / pull data stream models? - designService Design (WCF, ASMX, SOA) - design-patternsDefine the numbers in the given number. - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1710250/one-row-textarea-in-firefox-refuses-to-show-vertical-scrollbar&usg=ALkJrhj2WGRGvYMK_inhncWcvriv5x1wDwSafari and ASP.NET AJAX PageRequestManager.add_endRequest Function doesn't always work - cross-browserInternet Explorer Operation Interruption and Delay Problem - javascriptWhat is Crystal Reports for .NET? - crystal-reportsAll Articles