如何在WebBrowser控件中确定何时完成文档加载 [英] How To Determine When a Document Is Done Loading in WebBrowser Control
问题描述
您好,我在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!
推荐答案
< 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屋!