Answers for "clear highlight winforms treeview"

0

clear highlight winforms treeview

//Add a BeforeSelect event to your TreeView (FormX.Designer.cs):
treeView1.BeforeSelect += new TreeViewCancelEventHandler(treeView1_BeforeSelect);
//And create a treeView1_BeforeSelect function (FormX.cs):
private void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e)
        {
            e.Cancel = true;
        }
Posted by: Guest on October-22-2021

Browse Popular Code Answers by Language