• Log in or sign up for an account here: https://www.sythe.org/login

Help with GoSerach function

Renegades009

Forum Addict
Joined
Feb 28, 2007
Sythe Gold
0
Messages
274
Location
A House
Hi im using this code WebBrowser1.GoSearch(TextBox3.Text) To try and search the info in a text box next to it but its giving me this error. To many arguments to public sub GoSearch(). Any Ideas?
 
Two Factor Authentication User
GoSearch goes to the default search page. If you want to search use this:

WebBrowser.Navigate("search " & SearchTextBox.Text)


Also, you should use more descriptive names (ie. SearchTextBox) for your controls. Makes it much easier to code when your forms have a lot of controls.
 
Dude thanks you very much as you see im a noob. No theres one other promblem it compiles but when i try and search it brings up page cannot be displayed any ideas?
 
You should actually be using something like this for example to search Google...

Example Code to search using the textbox
Code:
WebBrowser.Navigate("http://www.google.ca/search?hl=en&q=" & SearchTextBox.Text)
Example of multi-term search URL where it's searching for "Hello" and "Hi"
Code:
http://www.google.ca/search?hl=en&q=Hello+Hi

You'll have to make it replace the spaces in your Textbox string with +'s for it to search multiple terms. Hope this was understandable, it's quite easy to do it for most other search engines too.
 
Hey nullware i was thinking of something like that. But ive moved on to other projects but thanks anyway.
 
duelarena.gg
Back
Top