Lompat ke konten Lompat ke sidebar Lompat ke footer

C# Delete TreeView Node

How To Remove Selected Node From A TreeView Using C#

 How To Remove Selected Node From A TreeView Using C C# Delete TreeView Node



In this C# Tutorial we will see How To Delete The Selected TreeView Node On Button Click Event In CSharp Programming Language And Visual  Studio Editor.




Project Source Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class TreeView_Remove_Node : Form
    {
        public TreeView_Remove_Node()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            treeView1.SelectedNode.Remove();
        }
    }
}

OutPut:

 How To Remove Selected Node From A TreeView Using C C# Delete TreeView Node




Posting Komentar untuk "C# Delete TreeView Node"