S
someone
Here is my code:
TreeNodeCollection nodes = tvwFolders.Nodes;
if (nodes.Count > 0)
{
// Select the root node
tvwFolders.SelectedNode = nodes[0];
}
I hope there is an easier way. I looked at TreeView.TopNode, but that is the
top "visible" node. I would think that getting the absolute top node should
be easy, isn't it? Is there a property or method I missed?
Thanks.
TreeNodeCollection nodes = tvwFolders.Nodes;
if (nodes.Count > 0)
{
// Select the root node
tvwFolders.SelectedNode = nodes[0];
}
I hope there is an easier way. I looked at TreeView.TopNode, but that is the
top "visible" node. I would think that getting the absolute top node should
be easy, isn't it? Is there a property or method I missed?
Thanks.