I have a main page (VB.Net 2012 4.0) which I have a treeview on the left that opens forms into a tab control page on the right. This all works fine except I would like to be able to determine the tab page display order when the treeview link is clicked. My example would be:

Treview Item

1: Demographics
2: Intake
3: Assessment(1)
4: Assessment(2)
5: Special Needs
6: Outcome

When the main form is opened, one tab page is created with a user control added as a facesheet that basically summarizes the users open tasks, the index is 0. After selecting the client filter they can then select a treeview item at random e.g. Item 4, Item 6, Item, Item 5, Item 1 and so on.

My goal is to place the new tab page in the order which they should be read as 1,2,3,4,5 as it is being added so tab 5 would always be to the left of tab 6 etc.

I have looked at dozens of examples and tried Insert instead of Add and giving the new tab page an pre-determined index but you can not add a tab with index 3 if it is greater than the collection.

Help needed.

Thanks.