title: How to remove 'System.Windows.Forms.TextBox, Text:' from message and text
body: <p>I have written a simple program in C# in which </p>
  
  <ol>
  <li>messages are displayed using a statement like:</li>
  </ol>
  
  
  
  <pre><code>    {
       MessageBox.Show("Enter the Correct Values. ", "Error", 
                       MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
       return;
      }
  </code></pre>
  
  <ol>
  <li><p>Some text box contents are written to text files using StreamWriter.
  In both case, in addition to the correct content, I also get the prefix:
  System.Windows.Forms.TextBox, Text:</p></li>
  <li><p>I get a similar prefix (and a suffix of \r\n) when using StreamReader to read the contents of a text file.</p></li>
  </ol>
  
  <p>How do I avoid this? </p>