[RESOLVED] Tabstrip and Treeview
I have 4 tabs in my program and a treeview. What I want to do is when I click certain nodes in my treeview the first 2 tabs are disabled and it automatically goes to tab3.
example
Treeview(root)
--Tree1
-----Tree2
--Tree3
-----Tree4
-----Tree5
If I click on Tree 2,4 or 5 then tab1 and tab2 will disable and tab3 and tab4 will be enabled will goto tab3 automatically.
Just the opposite if click in tree 1 or 3, tab3 and tab4 will be disabled and tab1 and tab2 will enable and goto tab1 automatically.
Re: Tabstrip and Treeview
You can't disable certain tab/s in a TabStrip... you can remove theme/it for example. To "select" a certain tab:
VB Code:
Private Sub TreeView1_Click()
Select Case (TreeView1.SelectedItem.Index)
Case 1:
TabStrip1.Tabs(1).Selected = True
Case 2:
TabStrip1.Tabs(3).Selected = True
'...
'...
End Select
End Sub
Re: Tabstrip and Treeview
Thank you Gavio for the help.