I am using the code below to hide and show tabs.
It was working great until I had to add another tab to the end of the tab list.
So when I add the tab, it goes to the end of the list and I need it to inserted into the 2nd to last tab position.
I tried insert, but the controls on the tab no longer line up with the numbering system I use.
All controls on Tabs are the same name with the index of the tab appended.
Tab 0 = controlname & 0
so the name would be controlname0
Tab 1 = controlname & 1
so the name would be controlname1
There are numerous controls/grids on each tab and each is named that way.
How do I position the tab that is being show in the position tabcontrol.selectedindex - 2
Dim tabs As New System.Collection.Generic.Dictionary(Of String, TabPage)
Private Sub RemoveTab(name As String)
Dim tab As TabPage = TabRacing.TabPages(name)
Private Sub RetrieveTab(name As String)
Dim tab As TabPage = tabs(name)