How To Determine When a Page Is Done Loading in WebBrowser Control

G

Guest

Hi

I'm want to catch the event where WebBrowser Control finish loading a page
after navigate.
The problem with document_complete event is that if the site is multi-framed
then the controls fires several document_complete events...
I've found some answers to my question in:
http://support.microsoft.com/kb/q180366/
But I couldn't implement the solution in c#.

thankx is advance
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

The OP question was about the WebBrowser client component, it's a COM
object that you can use in your win app, it has nothing to do with ASP.net


cheers,
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

I just checked and it's still working
maybe you need to be register to access it though.

cheers,
 
Joined
Jul 27, 2007
Messages
1
Reaction score
0
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)

{

if (this.webBrowser1.ReadyState != WebBrowserReadyState.Complete)

return;
else
do some work, the page including frames has fully loaded.
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top