title: VB.NET Find certain text in textbox
body: <p>I have <code>TextBox1</code> and <code>TextBox2</code></p>
  
  <p><code>TextBox1</code> has this in it</p>
  
  <pre><code>pooy
  </code></pre>
  
  <p><code>TextBox2</code> has this in it</p>
  
  <pre><code>dalton austin chicken pooy boddy chicken
  </code></pre>
  
  <p>And when you click on <code>Button1</code> it will look for the text "pooy" if it has it, it will go to <code>Form2</code> if it doesn't nothing happens.</p>
  
  <p>How can I do this?</p>
  
  <p>EDIT: GOT IT WORKING</p>
  
  <pre><code>If TextBox1.Text.Contains(TextBox2.Text) Then
      MsgBox("Activiated")
      My.Settings.key = TextBox1.Text
  Else
      MsgBox("Invalid Key... ")
  End If
  </code></pre>