2009-05-23 36 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。

相關問題