EagleTempest
Technical User
VB .NET 2005
Without selecting the previously creating node, is it possible to add a child to previously created node?
For example:
The code: .Nodes(0).Nodes(1).Nodes.Add("GrandChild") is a pain to use. Is there a way I can add a child node under Child2? What if the grandchild has grandchildren!! What a pain that would be to code.
Without selecting the previously creating node, is it possible to add a child to previously created node?
For example:
Code:
With TreeView1
.BeginUpdate()
.Nodes.Add("Parent")
.Nodes(0).Nodes.Add("Child1")
.Nodes(0).Nodes.Add("Child2")
.Nodes(0).Nodes(1).Nodes.Add("GrandChild")
.EndUpdate()
End With
The code: .Nodes(0).Nodes(1).Nodes.Add("GrandChild") is a pain to use. Is there a way I can add a child node under Child2? What if the grandchild has grandchildren!! What a pain that would be to code.