title: Open selected file from treeview in a richtextbox
body: <p>My application consists of a TreeView a RichTextBox and a Button.
  The TreeView displays contents(directories, folders and files) of my system.
  The Button when pressed is supposed to take the selected file from the TreeView and display it in the RichTextBox.
  I have used the following code:</p>
  
  <pre><code>    private void button_Click(object sender, EventArgs e)
      {
          string a = TreeView.SelectedNode.FullPath;           
          MessageBox.Show(a);  //To check if it's taking the correct path
          richTextBox1.LoadFile(a, RichTextBoxStreamType.PlainText);
      }
  </code></pre>
  
  <p>The value in the string a is correct, that is <code>TreeView.SelectedNode.FullPath</code> returns the correct path which I confirm with the MessageBox.</p>
  
  <p>However there is a runtime exception in the <code>richTextBox1.LoadFile(a, RichTextBoxStreamType.PlainText)</code> line. 
  It appends the path of the Debug folder before the actual selected file path(<a href="https://i.stack.imgur.com/UXqWj.png" rel="nofollow noreferrer">shown in the image</a>), which leads to an exception.
  All the files are stored locally.
  How can I solve this problem?</p>