如何在WebBrowser控件中确定何时完成文档加载 [英] How To Determine When a Document Is Done Loading in WebBrowser Control

查看:126
本文介绍了如何在WebBrowser控件中确定何时完成文档加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在VB.NET应用程序中使用WebBrowser COM控件。我想使用DocumentComplete事件来确定文档何时完全加载。我的问题是,对于多帧文档,每个帧都会触发一个DocumentComplete事件
。但是我只需要在加载整个文档时调用函数!请帮忙!


Ajith!

Hello, I am using the WebBrowser COM control in a VB.NET application. I would like to use the DocumentComplete event to determine when a document is completely loaded. My problem is that for multi-framed documents there is a DocumentComplete event fired for every frame. However i need to call a function only when the entire document has been loaded! Please help!


Ajith!

推荐答案

http://stackoverflow.com/questions/840813/how-to-use-webbrowser-control-documentcompleted-event- in-c

http://stackoverflow.com/questions/2328835/why-is-webbrowser-documentcompleted-firing-twice/2331827#2331827

< a href ="http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.documentcompleted.aspx"rel ="nofollow"> http://msdn.microsoft.com/en- us / library / system.windows.forms.webbrowser.documentcompleted.aspx

检查以下内容

http://support.microsoft.com/kb/180366


这篇关于如何在WebBrowser控件中确定何时完成文档加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆