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_DocumentCompleteEventHandler(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.
Sheng Jiang[MVP] - 05 Dec 2007 19:01 GMT
use remote debugging to find out if there is any error
I have this issue twice, once for mshtml.dll redistribution, once for a url
format exception that is thrown out in the unmanaged DocumentComplete event
and catched by .Net frameword itself.

Signature
Sheng Jiang
Microsoft MVP in VC++
> Hi all,
>
[quoted text clipped - 9 lines]
>
> axWebBrowser.DocumentComplete += new
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEventHandler(this.axWebBrowser_
DocumentComplete);
> object o = null;
> axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o);
[quoted text clipped - 13 lines]
>
> Any hints be appreciated.
Lou Zher - 05 Dec 2007 20:30 GMT
Probably better to ask microsoft.public.windows.inetexplorer.ie5.programming
-LZ
> Hi all,
>
[quoted text clipped - 27 lines]
>
> Any hints be appreciated.