Thursday, July 21, 2011

Adds new node as a child node of the currently selected node

If you want to add a new node as a child node of some selected node you have to write the code bellow:



Dim newNode As TreeNode = New TreeNode("Child node")
TreeView1.SelectedNode.Nodes.Add(newNode)

No comments:

Post a Comment

There was an error in this gadget