Tabpages order in Tab Control

  • Thread starter Thread starter SiewSa
  • Start date Start date
S

SiewSa

In order to speed up my application, I try to apply the tab control more
oftenly to reduce forms opening.

However, after maybe somewhile of debugging, I found the sequence of tab
pages shown up while debugging was not following the way it was designed in
the design mode. How could this happen? Is there any ways I can fix the
sequences of my tab pages?

Furthermore, this situation appear in my listview control also. The icons
(in the large icon view) found to be in different sequences as they were
designed also.

Many thanks to whom is going to help me on the above problems. Thank you.
 
This is a known bug. Reset the tab order manually in the ctor after
InitializeComponent is caled.

-Chris
 
Hi,

IIRC I solved this once simply by reordering the InitializeComponent call,
after that it worked fine.

It havent happen in a time now, so I presummed it was corrected on 2003
version

Cheers,
 
Thanks for the replies. However, could you please do little bit more by
giving a little bit of coding examples?

I wrote the following codes in the form load event but nothing seems to be
happened? What do you meant by "ctor" and how am I going to reordering the
initialize component?

TabControl1.TabPages.Item(0) = TabPage1

TabControl1.TabPages.Item(1) = TabPage2

TabControl1.TabPages.Item(2) = TabPage3

TabControl1.TabPages.Item(3) = TabPage4

TabControl1.Refresh()

Sorry if my question sounds to be so silly...and ... thanks for your further
replies. Thank you.
 
Back
Top