title: Reading lines in textbox individually
body: <p>I am trying read each line  in a textbox individually and check if it contains a certain string. This will be used in the textchanged event of the textbox to check for a certain string and it will execute it's corresponding code if found.</p>
  
  <p>I cant get it working right though. Here is my code.</p>
  
  <pre><code>    Dim txt As FastColoredTextBox = TryCast(page.Controls(0), FastColoredTextBox)
          For Each line As Line In txt.Lines
              If CBool(InStr(line.ToString(), "&lt;vb&gt;")) Then
                  txt.Language = Language.VB
              End If
  </code></pre>