I wrote this function but I don’t know how to write the rest of it
It should be something recursive which I don’t know
public TreeNode FindNodeByText(TreeView m, string s)
{
TreeNodeCollection nodes = m.Nodes;
foreach (TreeNode n in nodes)
{
if (n.Text == s)
return n;
else
??????????
}
}
Something like that: