title: C# Open Google Search With Search Request
body: <p>I have an InputTextbox that will have text in it such as:</p>
  
  <p>"search google for test"</p>
  
  <p>And this is the code I have at the moment:</p>
  
  <pre><code>String searchRequest = InputTextbox.Text;
  searchRequest = searchRequest.SubString(searchRequest.IndexOf("for ") + 4, searchRequest.Length-1);
  
  System.Diagnostics.Process.Start(@"C:\Program Files\Internet Explorer\iexplore.exe", "http://www.google.com.au/search?q=" + searchRequest);
  </code></pre>
  
  <p>What I am trying to do is search the "InputTextbox.Text" for the word "for" and use anything after it as the search term.</p>
  
  <p>Can someone tell me what I'm doing wrong with this please.</p>