title: VB.NET New Line not working
body: <p>The code in my <code>Else</code> is never executed, though I have new lines in my <code>Log</code> (richtextbox). I tried <code>vbNewLine</code>, <code>Environment.NewLine</code> and <code>vbCrLf</code>..</p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code> While (Pos &lt; Log.Text.Length)
     Ch = Log.Text(Pos)
     If Ch &lt;&gt; vbNewLine AndAlso Ch &lt;&gt; Environment.NewLine AndAlso Ch &lt;&gt; vbCrLf Then
          Temp += Ch
     Else
          Messages(i) = Temp
          MsgBox(Messages(i))
          Temp = ""
          i += 1
      End If
      Pos += 1
  End While
  </code></pre>