简体   繁体   English

C#TabControl选项卡在删除最后一个后消失

[英]C# TabControl tabs disappearing after removing the end one

Ok, So I have some tabs in a tab control. 好的,所以我在标签控件中有一些标签。 As soon as I have an overflow tab (when the tabs overflow onto another 'page' and the left/right arrows are shown) and I delete the end tab with tabControl1.TabPages.RemoveAt(tabControl1.SelectedIndex); 一旦我有了一个溢出选项卡(当这些选项卡溢出到另一个“页面”并且显示了向左/向右箭头时),然后使用tabControl1.TabPages.RemoveAt(tabControl1.SelectedIndex);删除了结束选项卡tabControl1.TabPages.RemoveAt(tabControl1.SelectedIndex); , where the selected index is that of the last tab, the overflow tab HEADER is still not shown but it's content is, as shown here: ,其中所选索引是最后一个选项卡的索引,但仍未显示溢出选项卡HEADER,但其内容是,如下所示:

在此处输入图片说明

How do i get my overflow tabs to show back up? 如何获取我的溢出选项卡以进行备份?

That appears to be a bug in the TabControl . 这似乎是TabControl的错误。

See this MSDN page for a not so pretty solution! 看到这个MSDN页面不是一个很好的解决方案!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM