treeView1.Focus();
treeView1.SelectedNode = treeView1.Nodes[1];
How many nodes are there under the root? I think that the Nodes that
are being exposed is the top level of nodes, and not all of the nodes in the
tree. If you have only one node at the root, then this would definitely
fail.
Hope this helps.
"Kelvin Bryant" <kelvin...@hotmail.com> wrote in message
news:0b3901c398a9$20c210b0$3101...@phx.gbl...
Note that treeView1.Nodes is only the list of nodes branching off the root;
not all the nodes in the entire tree.
treeView1.Nodes[1].Nodes is the list of nodes that branch off node 1, and so
forth. It's a recursive data structure.