1
由于某种原因,我程序中的事件处理程序不再工作。这个我以前跑过几次的确切代码。AxWebbrowser事件处理程序不再工作
object loc = "http://www.google.com/";
object null_obj_str = "";
System.Object null_obj = 0;
this.axWebBrowser1.Navigate2(ref loc , ref null_obj, ref null_obj, ref null_obj_str, ref null_obj_str);
this.axWebBrowser1.DocumentComplete += new AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEventHandler(this.axWebBrowser1_DocumentComplete);
private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{//Do some action}
没有理由不这样做,但这正是发生了什么事情。我尝试制作其他事件,但他们也不工作。任何投入将不胜感激。