title: tree View fullpath stripping
body: <p>Here is the application on codeplex all i did is created a new text box and trying to get path of current node selected into this text box, but i am getting extra things which i dont need at all,</p>
  
  <p>Link to application,</p>
  
  <p><a href="http://www.codeproject.com/KB/cs/my_explorer.aspx" rel="nofollow noreferrer">Codeplex app</a></p>
  
  <p>Code Line i am using is ,</p>
  
  <pre><code>TextBox1.Text = nodeCurrent.FullPath;
  </code></pre>
  
  <p>and output i am getting is something like this,</p>
  
  <blockquote>
    <p>My Computer\C:\\Documents and Settings\Administrator\Desktop</p>
  </blockquote>
  
  <p>My Computer here is Root Node, which i dont need, all i want is </p>
  
  <blockquote>
    <p>C:\Documents and Settings\Administrator\Desktop</p>
  </blockquote>
  
  <p>Picture added </p>
  
  <p><img src="https://i.stack.imgur.com/5AhgX.jpg" alt="enter image description here"></p>
  
  <p>Here is the function i am using it</p>
  
  <pre><code>private void tvFolders_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
      {
          //Populate folders and files when a folder is selected
          this.Cursor = Cursors.WaitCursor;
  
          //get current selected drive or folder
          TreeNode nodeCurrent = e.Node;
          string newPath = getFullPath(nodeCurrent.FullPath);
          tbDirectory.Text = newPath;
  
  
          //clear all sub-folders
          nodeCurrent.Nodes.Clear();
  
          if (nodeCurrent.SelectedImageIndex == 0)
          {
              //Selected My Computer - repopulate drive list
              PopulateDriveList();
          }
          else
          {
              //populate sub-folders and folder files
              PopulateDirectory(nodeCurrent, nodeCurrent.Nodes);
          }
          this.Cursor = Cursors.Default;
      }
  </code></pre>