I'm wondering is there a possibility to place a textbox control on form where user can write some sentense which will be used for search function on some website? For example, when You click Button1, everything which was written in textbox1.text property will be used and application open a instance of Internet Explorer with result page of searching (for example Wikipedia)?
I would be gratefully for any advice
Sory for my english:)
Best Regards;)
Textbox - Search box on website
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Former memberPosted May 14, 2012, 7:13 PM EDT
It will open your default browser in your system and will do the google search...
Process.Start("www.google.co.in/#hl=en&output=search&q=" + txtsearch.Text);
Hope you will get some idea...
SenthilkumarRank #387 · 6.5K pointsPosted May 14, 2012, 7:45 PM EDT
If you use the windows application then you can use the Process.start method to search the text in google.
At the same time if you use the web application, no need to use the process class instead of that, you can use the window.open to open the site directly with the required parameter.