title: open a web page on button click in form
body: <p>I want show a web page (google) when i click on the button in form(winform)....</p>
  
  <p>I have tried the below code but it does not work for me.....</p>
  
  <pre><code>   public partial class Form1 : Form {
      bool mHooked;
      public Form1() {
          InitializeComponent();
          webBrowser1.DocumentCompleted += webBrowser1_DocumentCompleted;
          webBrowser1.Navigate("http://www.google.com");
      }
  
      void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) {
          if (mHooked) return;
          // Get the form
          HtmlDocument doc = webBrowser1.Document;
          HtmlElement form = doc.Forms["f"];
          // Get the "I'm feeling lucky" button
          HtmlElement lucky = form.All["btnI"];
          lucky.Click += lucky_Click;
          mHooked = true;
      }
      void lucky_Click(object sender, EventArgs e) {
          this.Close();
      }
  }
  </code></pre>
  
  <p>I am doing winforms application using c#</p>
  
  <p>would any one pls help on this.....</p>
  
  <p>many thanks in advance...</p>