Skip to content

Textbox - Search box on website

michal adamkiewiczm

Asked May 14, 2012, 9:22 AM EDT2 answers
Share
LinkedInX
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;)

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    You can try the below..

    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...
    0
  • Senthilkumar
    0
    Hi,

    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.
    0