Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

multiple NavigateComplete2 events from one

17 views
Skip to first unread message

hzgt9bn...@discussions.microsoft.com

unread,
Aug 8, 2005, 1:53:04 PM8/8/05
to
I am receiving multiple NavigateComplete2 but my program only has one
Naviagte2 call and it is only being fired one time. Anyone have any idea why
multiple completion events are being Triggered?

Paul Larson remove spaces

unread,
Aug 17, 2005, 1:57:04 PM8/17/05
to

The event is being called for each html document being loaded. If your main
document is a frameset, then each frame generates its own
NavigateComplete2() event.

In your handler for this event, write a debug message showing the URL that
is generating the event, such as
System.Diagnostic.Debug.WriteLine("NavComplete2(" & e.uRL & ")")

HTH
-Paul


hzgt9bn...@discussions.microsoft.com

unread,
Aug 17, 2005, 3:33:15 PM8/17/05
to
Paul,
Thanks for the response... I know that some of the URLs are linking to pages
with frames... (stinking frames) that explains the multiple complete event
notifications...

My problem is that I want to take an action only when the entire page has
loaded completely... (i.e. after the last navigateComplete2 event
noyification) any suggestion(s) on how to handle this?

Paul Larson remove spaces

unread,
Aug 17, 2005, 4:17:03 PM8/17/05
to
> Paul,
> Thanks for the response... I know that some of the URLs are linking to
> pages
> with frames... (stinking frames) that explains the multiple complete
> event
> notifications...
>
> My problem is that I want to take an action only when the entire page has
> loaded completely... (i.e. after the last navigateComplete2 event
> noyification) any suggestion(s) on how to handle this?

Take a look at the "Busy" property of the webBrowser control.
This value is per-document as well, so you have to look at how many
documents are bing opened, and then wait for all of them them to signal
Busy=false.


bpbspatel

unread,
Jul 31, 2010, 4:24:03 PM7/31/10
to

--
patelbs
0 new messages