VB.Net Edit TreeView Node

How To Update Selected Node From TreeView Using Visual Basic .Net

Edit TreeView Node Using VB.Net



In this VB.NET Tutorial we will see How To Edit The Selected TreeView Node Name With Value From TextBox On Button Click Event In Visual Basic.Net Programming Language And Visual  Studio Editor.




Project Source Code:

Public Class Edit_TreeView_Node

    Private Sub TreeView1_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles TreeView1.AfterSelect

        ' get selected node text to textbox
        TextBox1.Text = TreeView1.SelectedNode.Text

    End Sub

    ' button edit
    Private Sub ButtonEdit_Click(sender As Object, e As EventArgs) Handles ButtonEdit.Click

        TreeView1.SelectedNode.Text = TextBox1.Text

    End Sub
End Class



OutPut:

Update Selected TreeView Node In VB.Net




Share this

Related Posts

Previous
Next Post »