Are you trying to emulate a search engine? If you are, then you need to create a spider application that searches the internet and creates a local copy of the page - this takes a lot of resources (hardware) which explains why it's generally left to companies like Google and Microsoft. Saying that, there's an excellent search application here on Code Project called
Searcharoo[
^].
If you just want to ask the question, then run the query through Google and extract and parse the results. You might find a starting point in
this article[
^].