How To Insert A New Node To TreeView Using Visual Basic .Net
In this VB.NET Tutorial we will see How To Add a New Node Or a Root From TextBox Using Visual Basic.Net Programming Language And Visual Studio Editor.
Project Source Code:
Public Class Add_Node_To_TreeView
Private Sub ButtonADD_Click(sender As Object, e As EventArgs) Handles ButtonADD.Click
Dim node As New TreeNode(TextBox1.Text)
'add child node
'TreeView1.SelectedNode.Nodes.Add(node)
'add root
TreeView1.Nodes.Add(TextBox1.Text)
End Sub
End Class
OutPut:
Download Projects Source Code