出于某种原因,我程序中的事件处理程序不再工作。我之前运行过几次的完全相同的代码。
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}
没有理由说这不起作用,但这正是正在发生的事情。我尝试制作其他事件,但它们也不起作用。任何投入将不胜感激。
请您参考如下方法:
我从 WinXP SP2 转移到 WinXP 3,我的事件也停止工作。在网上深入研究后,我发现我需要使用名为 AXIMP 的程序重新创建我的 InterOp DLL。
