get search results form browser

thorst

New member
Joined
Oct 24, 2006
Messages
4
Programming Experience
Beginner
Id like to add a text box in my app and a button that when you type soemthing in the box and then click the button it will open up ie and then search google for whatever you specified in the text box. I read over this page and i think its what im looking for but i tried a couple examples and i cant seem to get it to work. Does anyone know how to do this?

The code im using to open up the ie window is as follows:
Imports SHDocVw

Dim
o As Object = Nothing
Dim ie As New SHDocVw.InternetExplorerClass()
Dim wb As IWebBrowserApp = CType(ie, IWebBrowserApp)
wb.Visible =
True
wb.Navigate("http://www.google.com")

If there is a better way to do this let me know and also let me know if you know how to search google with the text in txt1.

 
Back
Top