2009-05-23 112 views
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} 

没有理由不这样做,但这正是发生了什么事情。我尝试制作其他事件,但他们也不工作。任何投入将不胜感激。

回答

4

我从WinXP SP2移到了WinXP 3,我的事件也停止了。在网络挖掘之后,我发现我需要使用名为AXIMP的程序重新创建我的InterOp DLL。