Click here to Skip to main content
15,064,026 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey,
I am programming a little tabbed Webbrowser in Visual Basic. Can someone please help me with a Google Search with suggestions like in Chrome or Firefox?
Posted

1 solution

Google search in browsers is usually nothing but loading appropriate Google page and letting the user use it.

In principle, you can hide the page, show your own controls for search options, generate your own HTTP request using System.Net.HttpWebRequest, http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^], get HTTP response from Google and even format it in your way. But why? In my opinion, just showing the Google search page is the safest; this way, you won't depend on any changes Google may make.

—SA
   
Comments
Maciej Los 9-Jul-13 17:50pm
   
Very interesting suggestion ;)
+5!
   
Thank you, Maciej.
(Don't know what's so interesting though...)
—SA
Maciej Los 10-Jul-13 7:22am
   
This is interesting suggestion because of 2 reasons:
1) OP does not need to do anything (this is the answer for WHY question),
2) OP does not need to do anything (this is the answer for HOW question).
;)
Sergey Alexandrovich Kryukov 10-Jul-13 10:23am
   
Nice explanation, thank you :-)
—SA
Henrik1001 9-Jul-13 21:34pm
   
Thanks for this Suggestion. Should I Read Out The results with regex?
   
Why Regex? You already got the search results, just show them?
By the way, these days Google search supports Regex in search, to certain extent...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900