Hey everybody,
Using the WebBrowser control, I had an issue getting a search box (returning a Null variable value). I changed it to search directly (via Google) however VB doesn't want to pass the user's search terms into the Google URL that I have. Tried quotes in every logical location, changed variables, used the {} brackets (not sure what they are called) around the variable... nothing works.
The search box (basic text box) is called txtSearch, and the variable is WebSearch. Here is the code...
Private Sub DoSearch()
Dim WebSearch As String
WebSearch = txtSearch.Text
AppManager.CurrentBrowser.Navigate("http://www.google.com/search?hl=en&q=", txtSearch.Text)
End Sub
The browser WILL go to the page, but ONLY the Google home page (because there is no search term being sent).
Can anyone help me out? It has to be simple, but I simply cannot get it!
-Brandon