title: Creating an Address bar that doubles as a Google Search bar like in Chrome. VB
body: <p>I am trying to create a browser in Visual Studio 2013 using windows forms and the browser needs to have an Address bar that doubles as a Google Search bar like in Chrome. Here is my code for the Address bar, but I do not know what to put in after "If" and before "Then" in order to accomplish this. Any ideas?</p>
  
  <pre><code> Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
          If                Then
              AxWebBrowser1.Navigate(TextBox1.Text)
          Else
              AxWebBrowser1.Navigate("http://www.google.com/search?q=" + TextBox1.Text)
          End If
      End Sub
  </code></pre>