I've also had this happen. Here's what's going on: you add your
11 tabs to the tabcontrol at design time. Entries for each tab page are
added to the Forms Designer code in the InitializeComponent method
that respect the tabpage indexes you effectively set using the visual
designer.
Occasionally, with enough builds followed by changes to the form or
tabcontrol,
the .resx file associated with the form seems to get confused and the
indexes on the
tab pages change, in the code! To fix this, just open the Forms Designer
generated code
you aren't supposed to be editing and manually set the indexes of your tab
pages
to the order you desire them to appear.
I have never seen a difference between what's actually in the code and the
tabpage ordering
that results at runtime (as one would expect).
-Darren Shaffer
"Earl" <brik...@newsgroups.nospam> wrote in message
news:%23Ux25p3...@TK2MSFTNGP11.phx.gbl...
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Earl" <brik...@newsgroups.nospam> wrote in message
news:%23Ux25p3...@TK2MSFTNGP11.phx.gbl...
"Darren Shaffer" <darren...@discussions.microsoft.com> wrote in message
news:%23wCbyu3...@TK2MSFTNGP14.phx.gbl...
"Daniel Moth" <dmo...@hotmail.com> wrote in message
news:uqbtd03z...@TK2MSFTNGP09.phx.gbl...
Reference your tabs by name as it makes life much easier ;-)
TabControl1.TabPages.IndexOf(TabPage1)
Rick
"Rick" <ri...@e-sword.net> wrote in message
news:OnwDIfC0...@TK2MSFTNGP15.phx.gbl...