wouldnt it be easier to just use teh parent.Nodes collection? i.e. Private Sub AddNode(ByVal node As TreeNode, Optional ByVal parent As TreeNode = Nothing)
If parent Is Nothing Then
'ADD AT BOTTOM OF LIST
TreeView1.Nodes.Add(node)
Else
'ADD AS CHILD TO REQUESTED PARENT
parent.Nodes.Add(node)
End If
End Sub
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
