摘要: WebBrowser1控件必须打开一个页面,空白也可以,然后在下列事件处理 Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) Dim doc As HTMLDocument Dim js As HTMLScriptElement Set js = doc.creat... 阅读全文
posted @ 2009-04-14 03:57 Max Woods 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1.获得网页中变量值 htm中 程序中可以这么调用 id := Form1.WebBrowser1.OleObject.Document.script.currID 值得说明的是,变量可以是javascript定义的,也可以是vbscript定义的,如果Webbrowser1中找不到该变量,调用会触发一个异常事件,即变量currID不存在 2.执行网页中的函数 ... 阅读全文
posted @ 2009-04-14 03:50 Max Woods 阅读(2994) 评论(0) 推荐(1) 编辑
摘要: Project source, example, HTML help documentation - 348 KbDownload control source only (includes help .chm file) - 159 Kbhttp://www.4shared.com/folder/... 阅读全文
posted @ 2009-04-14 03:44 Max Woods 阅读(7577) 评论(0) 推荐(0) 编辑
摘要: 自从用上VS2005后,发现多了个WebBrowser控件(.net 2003中不带),为图方便吧,有好多小工具就用这个写的,慢慢也有点体会了,总结一下,与网友们共享吧。 1、如何获得“打开网页出错”信息 在DocumentCompleted事件中,判断Document.Url.AbsoluteUri中的"res://":标志即可(以前总用e.Url,怪不得总截取不到)... 阅读全文
posted @ 2009-04-14 02:30 Max Woods 阅读(500) 评论(0) 推荐(0) 编辑