0
Reply

how to use attachedhandlerevent event in wpf webbrowser cont

Sourabh Choubey

Sourabh Choubey

Apr 13 2017 10:02 AM
275
how to use attachedhandlerevent event in wpf webbrowser control
 
var div = webBrowser1.Document as mshtml.HTMLDocument;
IHTMLElement target = div.getElementById("tabcontent");
if (target != null)
{
target.AttachEventHandler("onpropertychange", handler);
}//I am getting error in AttachEventHandler
It shows mshtml.ihtmlelement does not contain a definition for AttachEventHandler.