Nodes in TreeView Control on Forms

asn1981

Active member
Joined
Mar 15, 2005
Messages
38
Programming Experience
Beginner
Hi
is there a simple way of getting all the index values for the nodes from the current selected node all the way up to the main parent node root.

For example if you are 4 levels down a tree then you can use the below to give you the current nodes index value..
Dim nodeindex As Integer = tvFileList.SelectedNode.Index

and you can get the above nodes parents index value using the below..
Dim iParentN As Integer = iParentN = tvFileList.SelectedNode.Parent.Index

however what i can not find out how to do is get the node index value for the parent of the node above and its parents nodes index value and so on all the way up the tree view to the root.

if this is not clear i can explain further, thanks in advance.
 
Back
Top