Adding a Child node to a Child node in a TreeView control -
10-12-2007
, 04:12 PM
Hello,
I am kinda new to the .net environment and trying to get familiar with some
of the tools, etc. I am trying to work on the TreeView Control. I have added
a parent tree and a child to it. But I would like to add a child to that
child, so on and so forth if need be. Can anyone help me?
Posting my code here from that I have do far for reference.
Dim root As TreeNode = New TreeNode
root.Text = "test"
root.ChildNodes.Add(New TreeNode("Topic 1"))
TreeView1.Nodes.Add(root)
Thanks. |