Hi. I am trying to loop through all nodes and child nodes in a TreeView.
The following code just loop through the first two levels of nodes.
I don't know how many levels there are so I need to find code that
automatically finds all nodes and TreeNodes
For i As Integer = 0 To Me.TreeViewOrg.Nodes.Count - 1
oNodeText = Me.TreeViewOrg.Nodes(i).Text
For i As Integer = 0 To Me.TreeViewOrg.Nodes(0).ChildNodes.Count - 1
oNodeText = Me.TreeViewOrg.Nodes(0).ChildNodes(i).Text