简体   繁体   中英

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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM