DocumentComplete event failed to fire in different version of SHDOCVW.DLL



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.
.



Relevant Pages

  • Re: DocumentComplete event failed to fire in different version of SHDOCVW.DLL
    ... I wrote a Windows Form application that hosts WebBrowser control, ... but the WebBrowser control failed to fire ... the DocumentComplete event while run on another computer. ... axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o); ...
    (microsoft.public.dotnet.framework.clr)
  • Re: DocumentComplete event failed to fire in different version of SHDOCVW.DLL
    ... I have this issue twice, once for mshtml.dll redistribution, once for a url ... I want to handle the DocumentComplete event in C# code. ... My code snippet: ... axWebBrowser.Navigate2(ref __url, ref o, ref o, ref o, ref o); ...
    (microsoft.public.dotnet.framework.clr)
  • WebBrowser Printer Output Control
    ... I'm developing a c# application which hosts a WebBrowser control. ... this.axWebBrowser1.ExecWB(Print, DontPromptUser, ref o, ref o); ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: how show xml?
    ... > Yes, just as Herfried suggested, you may use WebBrowser control. ... > Web Browser" ... > Its function is similiar as IE, you may use it to display xml like this: ... > this.axWebBrowser1.Navigate2(ref url, ref o, ref o, ref o, ref o); ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Webbrowser Control for AJAX based sites
    ... For the Ajax based sites like live.com, the webbrowser control ... processes and renders the javascript requests, ... DocumentComplete event is fired, because of which I get incorrect ... scrollHeight and scrollWidth of the document. ...
    (microsoft.public.dotnet.languages.csharp)

Loading