title: How to remove Node from Treeview by giving Node Name using C#
body: <p>I am Adding node In My Treeview by this code</p>
  
  <pre><code> trvMenu.Nodes.Clear();   
   trvMenu.Nodes.Add("TestNode"); 
  </code></pre>
  
  <p>and it added Successfully,</p>
  
  <p>Now I want To remove It, So I am Writing This code</p>
  
  <pre><code>  TreeNode tn = new TreeNode("TestNode");
    this.trvMenu.Nodes.Remove(tn);
  </code></pre>
  
  <p>But its Not Working !!!</p>
  
  <p>Currently I am removing It by finding index than remove by index and its work nicely,
  by below code:</p>
  
  <pre><code>                    int foundIndex = 0;
                      int indexCount = 0;
                      foreach (TreeNode myString in trvMenu.Nodes)
                      {
  
  
                          if (myString.Text == "TestNode")
                          {
                              foundIndex = indexCount;
  
  
                          }
                          indexCount++;
  
  
                      } 
                      this.trvMenu.Nodes[foundIndex].Remove();  
  </code></pre>
  
  <p>Kindly Help me. </p>