The index is set automatically when you fill the
TabPages
property:
tabControl1.TabPages.Add(page1);
tabControl1.TabPages.Add(page2);
tabControl1.TabPages.Add(page3);
If you want to change indices, just change the add order:
tabControl1.TabPages.Add(page2);
tabControl1.TabPages.Add(page1);
tabControl1.TabPages.Add(page3);
Or as OriginalGriff said, you can use the
Insert
method for example.
Using
BringToFront
will not help there.