public TreeNode GetNodeFromPath(TreeNode node, string path)
{
TreeNode foundNode = null;
foreach (TreeNode tn in node.Nodes)
{
if (tn.FullPath == path)
{
return tn;
}
else if (tn.Nodes.Count > 0)
{
foundNode = GetNodeFromPath(tn, path);
}
if (foundNode != null)
return foundNode;
}
return null;
}