Treeview how to reference each node?

newguy

Well-known member
Joined
Jun 30, 2008
Messages
611
Location
Denver Co, USA
Programming Experience
1-3
Hi all, I am trying to learn to use the treeview, I want to select diff. nodes and have it display diff. data in diff. panels I have, the trouble I am having is finding info on how to reference each node, if you know a good treeview tutorial that would be great or some general syntax structure would be helpful as well. I have spent hours on MSDN but most of the info is vague and no syntax to help me, thanks in advance...:confused:
 
The nodes are TreeNode class instances and they are contained in TreeNodeCollections, this is exposed from Nodes property. The tree have same structure in code as you can view, this means that TreeView has a Nodes collection that contains all root nodes, each node has its own Nodes collection that contains the child nodes etc. So apart from TreeView documentation you must also learn TreeNode class and TreeNodeCollection class. You can also try to search "vb.net treeview tutorial".
 
Ok, thanks.

Not much help with the search - only get the auto-generated code stuff that I already don't have to worry about as VB.net builds this for me, nothing about accesing the nodes themselves.

The search continues...........
 
Last edited:
Back
Top