Belzeski
January 16th, 2009, 04:19 AM
I'd like to input a url into my textbox then press the button to search the web for the page. :(
I odn't know what control to addin what reference i need to make
BigEd781
January 16th, 2009, 04:52 AM
What do you want to do with that page exactly? It sounds like you should just tell them to search Google or *maybe* open up their browser. It could be as simple as:
static void Main(string[] args)
{
string searchParms = "test";
string startArgs = String.Format("http://www.google.com/search?hl=en&q={0}", searchParms);
ProcessStartInfo info = new ProcessStartInfo(@"C:\Program Files\Internet Explorer\iexplore.exe", startArgs);
Process.Start(info);
}
I don't know anything about using the Google API, but this will open IE and execute a search for "test". Of course, you should use the default browser, but you must be after soemthing else as this doesn't make much sense...