Home > Archive > Visual Basic DirectX > August 2005 > multiple NavigateComplete2 events from one
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
multiple NavigateComplete2 events from one
|
|
| hzgt9b@nopost.com 2005-08-08, 5:05 pm |
| 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 2005-08-17, 5:06 pm |
| >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?
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
| |
| hzgt9b@nopost.com 2005-08-17, 5:06 pm |
| 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" wrote:
>
> 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
>
>
>
| |
| Paul Larson 2005-08-17, 5:06 pm |
| > 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.
|
|
|
|
|