The problem is that in tn.Text the string start with a number and a dot/point for example:
1. hello
2. hi
3. world
And i need that tn.Text will contain only the text for example:
hello
hi
world
1. hello
2. hi
3. world
And i need that tn.Text will contain only the text for example:
hello
hi
world
private void FindRecursive(TreeNode treeNode)
{
foreach (TreeNode tn in treeNode.Nodes)
{
if (tn.Text == this.txtNodeTextSearch.Text)
tn.BackColor = Color.Yellow;
FindRecursive(tn);
}
}
No comments:
Post a Comment