treeview - select a node programmatically

  • Thread starter Thread starter John Smith
  • Start date Start date
Hi John,

Once you find the node with the given text, you have a reference to a
TreeNode object, set the TreeView.Selected node to that reference.


--
B\rgds
Stoitcho Goutsev (100) [C# MVP]
John Smith said:
ok, but what do i do when i find it?
whats the method that selects the node?
 
* "John Smith said:
ok, but what do i do when i find it?
whats the method that selects the node?

Set 'TreeView.SelectedNode' to the node and cancel further enumeration.
 
Back
Top