title: c# AxWebBrowser Document OnClick Disables browser
body: <p>It seems like there is a lot of questions like this, but cant find the answer.</p>
  
  <p>I've implemented OnClick event like it this thread: <a href="http://support.microsoft.com/?kbid=312777" rel="nofollow">http://support.microsoft.com/?kbid=312777</a>
  But the result is that browser is completely disabled (scrollbar, controls...).</p>
  
  <p>I've searcher the internet and couldn't find clear solution.</p>
  
  <p>Some says that has to be created new class inherited from WsbBrowser and then overload those events.
  Other says that answer is here <a href="http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20661377.html" rel="nofollow">http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20661377.html</a> but i dont have account.</p>
  
  <pre><code> private void FormBrowser_DocumentComplete(object sender, DWebBrowserEvents2_DocumentCompleteEvent e)
      {
          mshtml.HTMLDocument doc;
          doc = (mshtml.HTMLDocument)FormBrowser.Document;
          mshtml.HTMLDocumentEvents2_Event iEvent;
          iEvent = (mshtml.HTMLDocumentEvents2_Event)doc;
          iEvent.onclick += new HTMLDocumentEvents2_onclickEventHandler(ClickEventHandler);
      }
  
  private bool ClickEventHandler(mshtml.IHTMLEventObj e)
      {
          return true;
      }
  </code></pre>
  
  <p>Who knows solution? </p>