SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Geek Stuff

Visual Basic Web Browser

(4 posts)
  • Started 6 years ago by nburrell11
  • Latest reply from nburrell11
  • Topic Viewed 3548 times

nburrell11
nburrell11
Posts: 46

I'm trying to make a web browser in Visual Basic Express Edition 2008, but I have one problem. I am trying to make a search bar/ button combo so i can type in what i want to search and click the button and have it search it on Google. How do i code the button so it "reads" the text from the search box and inserts it into a Google Search?

Posted 6 years ago
Top
 
athieboy
Posts: 1

Put this code in the button
If its your first combobox in your form type this:
webbrower1.navigate "http://www.google.com/search?q=" & combobox1.text
If its your second type:
webbrower1.navigate "http://www.google.com/search?q=" & combobox2.text
You know what to do if its your any other :D
Glad to help.

Posted 6 years ago
Top
 
nburrell11
nburrell11
Posts: 46

THANK YOU SO MUCH!!
It works PERFECTLY!!!!!!!!!!!!!!!

Posted 6 years ago
Top
 
nburrell11
nburrell11
Posts: 46

Does anyone know how to make the combobox display the url for the website??

Posted 6 years ago
Top
 



Topic Closed

This topic has been closed to new replies.