title: Need to exclued enter key from textbox
body: <p>The folowing code to read text from a text based file into a textbox however the enter key is also displayed (as two small boxes) I need my code to subtract the absolute last character in the textbox how can this be done?</p>
  
  <pre><code>    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  
      Dim ReadALPHA As System.IO.StreamReader
  
      ReadALPHA = System.IO.File.OpenText("C:\Alpha.val")
      TextBox1.Text = (ReadALPHA.ReadToEnd)
      ReadALPHA.Close()
  
      Dim ReadBETA As System.IO.StreamReader
  
      ReadBETA = System.IO.File.OpenText("C:\BETA.val")
      TextBox2.Text = (ReadBETA.ReadToEnd)
      ReadBETA.Close()
  
  
      'TextBox1.Text = "&lt;Enter first value&gt;"
      'TextBox2.Text = "&lt;Enter second value&gt;"
  
  End Sub
  </code></pre>