Question Linking TreeView?

Vermiculus

Well-known member
Joined
Jul 28, 2008
Messages
55
Location
Baltimore
Programming Experience
1-3
I have a rather large, multi-level form and I do not wish to seperate it into multiple forms. I have learned that the set of names of the nodes within a TreeView is seperate from the main form; that is to say I can have a node with the same name as tab page.

Which is an excellent segue into my question: Is it possible to select the tab page that corresponds to the node? This is what I have so far...
PSEUDO-CODE (meaning: = mock code; looking for algorithm here)
VB.NET:
Private Sub Link(...) Handles TreeView1.NodeSelected
SelectedTabPage.Name = TreeView1.SelectedNode.Name
End Sub

Any help would be greatly appreciated.
 
Did you mean like this:
VB.NET:
Me.TabControl1.SelectedTab = Me.TabControl1.TabPages(TreeView1.SelectedNode.Name)
 
Back
Top