Strange Tab Control Problem

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I am using VB in VSNET 2003 building a Windows form with a tab control. The
control has 8 tabs (0 through 7). If I use the collections property of the
control and move the tab in position 7 to position 3 that is correctly
reflected in the IDE but if I run the application, tab 7 is back in position
7? The IDE remains correct? Also, if I save and exit VSNET and then re-open
the solution, tab 7 is again back in position 7?

What the heck did I do wrong here?

Wayne
 
Hi Wayne,

I am not sure if it is this one, however in the settings of the tabs with
the tabpage is an anoying bug which does those things, some people build
everytime there tabpages. I thought that I had some success by not selecting
them by index however by name, however maybe that is a coincidental.

Cor
 
* "Wayne Wengert said:
I am using VB in VSNET 2003 building a Windows form with a tab control. The
control has 8 tabs (0 through 7). If I use the collections property of the
control and move the tab in position 7 to position 3 that is correctly
reflected in the IDE but if I run the application, tab 7 is back in position
7? The IDE remains correct? Also, if I save and exit VSNET and then re-open
the solution, tab 7 is again back in position 7?

I think that's a known bug. You can remove all tabpages after the call
to 'InitializeComponent' in the forms constructor and re-add them in the
right order.
 
Thanks guys. It is good to know that it was not just my senility bubbling
up...

Wayne
 
Mick;

Thanks for that reference. I used those instructions on defining the z-order
and it worked great!

Wayne

"Mick Doherty"
 
Thanks.
As you can see, theres not much I don't know about tabcontrols.
I really should get a life.

;-)
 
Back
Top