Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
        }
 
PREVIOUS NEXT
Tagged: #clear #highlight #winforms #treeview
ADD COMMENT
Topic
Name
7+1 =