carlosdubusm
carlosdubusm

Reputation: 1083

Why is WebBrowser DocumentCompleted only firing when all images are loaded?

I have a WebBrowser control in my application, I thought DocumentCompleted is fired right after the body is loaded, with or without images, but that's not the case.

The body is loaded and the images take a while to load, and the event is not fired until all images are loaded.

How can I avoid this and fire the event right after body is loaded? (I don't care about the images)

Upvotes: 4

Views: 1216

Answers (1)

roberto tomás
roberto tomás

Reputation: 4687

do you want the Navigated event? http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.navigated.aspx

sorry this isnt just a comment, I'm missing the link for that just now :S

Upvotes: 4

Related Questions