![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I wrote a Windows Form application that hosts WebBrowser control, and I want to handle the DocumentComplete event in C# code. It works fine on my development computer, but the WebBrowser control failed to fire the DocumentComplete event while run on another computer. The SHDOCVW.DLL on my computer has the version: 6.0.3790.3959, and the SHDOCVW.DLL on another computer has the version: 6.0.3790.4134. My code snippet: axWebBrowser.DocumentComplete += new AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent Handler(this.axWebBrowser_ |
|
object o = null; axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o); //..... private void axWebBrowser_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) { //....... } On another computer, method axWebBrowser_DocumentComplete() not run at all! Is this problem related to the version of SHDOCVW.DLL? If so, how to tackle the problem? since SHDOCVW.DLL can not be redistributed. Any hints be appreciated. |
#3
| |||
| |||
|
|
Hi all, I wrote a Windows Form application that hosts WebBrowser control, and I want to handle the DocumentComplete event in C# code. It works fine on my development computer, but the WebBrowser control failed to fire the DocumentComplete event while run on another computer. The SHDOCVW.DLL on my computer has the version: 6.0.3790.3959, and the SHDOCVW.DLL on another computer has the version: 6.0.3790.4134. My code snippet: axWebBrowser.DocumentComplete += new AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent Handler(this.axWebBrowser_DocumentComplete); object o = null; axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o); //..... private void axWebBrowser_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e) { //....... } On another computer, method axWebBrowser_DocumentComplete() not run at all! Is this problem related to the version of SHDOCVW.DLL? If so, how to tackle the problem? since SHDOCVW.DLL can not be redistributed. Any hints be appreciated. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |