如何访问WebBrowser背后的dom组件? [英] How to access the dom component behind a WebBrowser?

查看:79
本文介绍了如何访问WebBrowser背后的dom组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何通过将WebBrowser.Document.DomDocument属性转换为 NavigateComplete2 .一切都会有所帮助,谢谢.

I know how to access the dom component behind, say, a HtmlDocument, by casting WebBrowser.Document.DomDocument property to a IHTMLDocument2. But I', not even sure if there is a dom component behind a WebBrowser (not a HtmlDocument). The problem is that I'm having problems with the DocumentCompleted event being fired several times WITH ReadyState set to Complete. I've seen in the Visual Basic documentation that they can access some other events, like NavigateComplete2. Anything will help, thanks.

推荐答案

以下是一些您应该查看的链接:

Here are some links you should check out:

 


如何确定何时在WebBrowser控件中加载页面
http://support.microsoft.com/kb/180366


How To Determine When a Page Is Done Loading in WebBrowser Control
http://support.microsoft.com/kb/180366


在VB中使用WebBrowser_NavigateComplete2
http://support.microsoft.com/kb/259935


Using WebBrowser_NavigateComplete2 in VB
http://support.microsoft.com/kb/259935


Visual Basic开发人员参考
http://msdn.microsoft.com/en-us/library/aa752043 (v = VS.85).aspx


Reference for Visual Basic Developers
http://msdn.microsoft.com/en-us/library/aa752043(v=VS.85).aspx


这篇关于如何访问WebBrowser背后的dom组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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