private void findIntree(TreeNodeCollection tNodeCollection, string p)
{
foreach (TreeNode tNode in tNodeCollection)
{
if (tNode.Name == p)
{
tNode.TreeView.SelectedNode = tNode;
//tNode.= Color.SteelBlue;
tNode.TreeView.SelectedNode.Expand();
break;
}
//else
//{
// tNode.ForeColor = Color.Black;
// //tNode.TreeView.SelectedNode.Collapse();
//}
findIntree(tNode.Nodes, p);
}
}
No comments:
Post a Comment