Select a treeNode in a treeView
C#
5
Posts
2
Posters
1
Views
1
Watching
-
Hi, Is it possible to select and expand a treeNode in a treeView by program, with the treeNode highlighted ? I tried many methods, but none can get the treeNode highlighted while it expand ! I want to emulate the situation where user click the treeNode by program. Thanks Kim
-
Hi, Is it possible to select and expand a treeNode in a treeView by program, with the treeNode highlighted ? I tried many methods, but none can get the treeNode highlighted while it expand ! I want to emulate the situation where user click the treeNode by program. Thanks Kim
-
You can do it by using SelecedNode. example :
TreeView1.SelecedNode = TreeView1.Nodes[0].Nodes[4].Nodes[20]; TreeView1.Focus();
Hello Friends