Tuesday, July 29, 2014

How can i remove/delete digits in the beginning of a string ?

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




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