It seems like there is a lot of questions like this, but cant find the answer.
I've implemented OnClick event like it this thread: http://support.microsoft.com/?kbid=312777 But the result is that browser is completely disabled (scrollbar, controls...).
I've searcher the internet and couldn't find clear solution.
Some says that has to be created new class inherited from WsbBrowser and then overload those events. Other says that answer is here http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20661377.html but i dont have account.
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;
}
Who knows solution?