Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / December 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
prowyh - 04 Dec 2007 17:51 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.