我的程序中的事件处理程序由于某种原因不再起作用。这个完全相同的代码我以前跑了好几次。
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}
没有理由说这不起作用,但这正是发生的事情。我尝试过制作别人的活动,但他们也没办法。任何投入将不胜感激。
答案 0 :(得分:4)
我从WinXP SP2迁移到WinXP 3,我的活动也停止了工作。在挖掘网页后,我发现我需要使用名为AXIMP的程序重新创建我的InterOp DLL。