This is a known bug.
You can easily fix that once for all with simple code. You can use the
following code to completely remove TabPages from the TabControl in re-add
them in the correct order. It is important to notice that the content of
TabPages will not be affected.
With TabControl1.TabPages
.Clear()
.Add(TabPage1)
.Add(TabPage2)
.Add(TabPage3)
.Add(TabPage4)
.Add(TabPage5)
End With
This code needs to be placed anywhere after the call to InitializeComponent.
The Form's Load event is a good place for that.
--
HTH
Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(
www.s2i.com)
"KC" <yo*@dontneed.this> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
Has anyone else had the problem of tabs in a tab control changing position
on their own? Sometimes I run my app (in debug mode) and some of the tabs
are in completely different positions. I can shift them back in the tab
control no problem, but it ain't suppose to be doing that in the first
place.
---
Ken