title: How can i remove from a treeView1 only the selected child node?
body: <p>I have this event where i select with the mouse a node in the <code>treeView1</code>:</p>
  
  <pre><code>private void treeView1_MouseUp(object sender, MouseEventArgs e)
  {
      if (e.Button == MouseButtons.Right)
      {
          treeView1.SelectedNode = treeView1.GetNodeAt(e.X, e.Y);
  
          if (treeView1.SelectedNode != null)
          {
              menuStrip.Show(treeView1, e.Location);
          }
      }
  }
  </code></pre>
  
  <p>Then i have context menu strip i select fro example delete to remove directory:
  After the directory removed i want to update the treeView1 structure visualy in the place was remove i mean the node/child node i selected.</p>
  
  <pre><code>private void RemoveDirectory(string remoteFile, bool fileordir)
  {
      remoteFile = remoteFile.Replace('\\', '/');
      if (remoteFile.StartsWith("root"))
      {
          remoteFile = remoteFile.Replace("root", string.Empty);
      }
      string deleteRequest = txtHost.Text + remoteFile;
      FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://" + deleteRequest);
      if (fileordir == true)
      {
          request.Method = WebRequestMethods.Ftp.RemoveDirectory;
      }
      request.Credentials = new NetworkCredential(txtUsername.Text, txtPassword.Text);
      request.Proxy = null;
      request.UseBinary = false;
      request.UsePassive = true;
      request.KeepAlive = false;
      FtpWebResponse response = (FtpWebResponse)request.GetResponse();
      Stream responseStream = response.GetResponseStream();
      StreamReader sr = new StreamReader(responseStream);
      sr.ReadToEnd();
      string StatusCode = response.StatusDescription;
      sr.Close();
      response.Close();
      treeView1.SelectedNode.Remove();
  }
  </code></pre>
  
  <p>In the bottom i added the line:</p>
  
  <pre><code>treeView1.SelectedNode.Remove();
  </code></pre>
  
  <p>But this will remove the whole node.
  For example if i selected child node /b/c/d/e/f if i selected to remove e then only e and f should be removed.</p>
  
  <p>If i select to remove b then b c d e f should remove.</p>
  
  <p>I didn't find any selected property for the specific child node.</p>
  
  <p>This is a screenshot of what i mean:</p>
  
  <p><img src="https://i.stack.imgur.com/9O6Fo.jpg" alt="Remove Child Selected Node"></p>
  
  <p>In this case i clicked on selected the child node $Recycle Bin
  When i click on delete i want to remove from the treeView1 the $Recycle Bin and the files inside $Recycle Bin  but i wan that C will stay will not be removed.</p>
  
  <p>So on root i will see C but inside C there will be nothing since i removed only $Recycle Bin
  And if i was clicking on C and make delete then i want to make treeView1.SelectedNode.Remove(); that will remove/delete the whole C node.</p>
  
  <p>The question is how can i remove only child node and the files inside from the treeView1 i mean that i will not see them it dosen't mean i remove them from hard disk or my ftp server i just don't want to see the $recycle Bin and the files inside in the treeView1.</p>