Tabpages order in Tab Control

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.
 
C

Chris Tacke, eMVP

This is a known bug. Reset the tab order manually in the ctor after
InitializeComponent is caled.

-Chris
 
I

Ignacio Machin \( .NET/ C# MVP \)

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,
 
S

SiewSa

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top