For this use Toolbox. Just drag the Treeview control to the form and write the code for addding,deleting or updating the query
To add or remove nodes in the designer
Select the TreeView control or add one to the form.
In the Properties window, click the ellipsis (
) button next to the Nodes property. The TreeNode Editor appears.
To add nodes, a root node must exist; if one does not exist, you must first add a root by clicking the Add Root button. You can then add child nodes by selecting the root or any other node and clicking the Add Child button. To delete nodes, select the node to delete and then click the Delete button.
To add nodes programmatically
Use the Add method of the tree view's Nodes property. ' Visual Basic' Adds new node as a child node of the currently selected node.Dim newNode As TreeNode = New TreeNode("Text for new node")TreeView1.SelectedNode.Nodes.Add(newNode
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.