parzivail
parzivail

Reputation: 381

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);, 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:

enter image description here

How do i get my overflow tabs to show back up?

Upvotes: 0

Views: 272

Answers (1)

Chris
Chris

Reputation: 5514

That appears to be a bug in the TabControl.

See this MSDN page for a not so pretty solution!

Upvotes: 1

Related Questions