VB6 WebBrowser控件为何不能完全打开网页,而IE浏览器却能?
在VB6程序中添加了WebBrowser控件,由于页面过长,需要边滚动边加载,但是边滚动时网页加载不完,导致页面出现空白区域,而相同情形下,用IE浏览器打开相同的页面,边...
在VB6程序中添加了 WebBrowser控件,由于页面过长,需要边滚动边加载,但是边滚动时网页加载不完,导致页面出现空白区域,而相同情形下,用IE浏览器打开相同的页面,边滚动边加载,页面却能正常加载完全。如何使WebBrowser控件在滚动时能加载完全页面内容呢?监测器busy,readstate url 等属性,不准确,就是说即使busy属性等于False了,页面仍然没有打开完毕。
展开
1个回答
2014-10-23 · 知道合伙人软件行家
关注
展开全部
newwindow事件
set Webbrowser.Object=ppDisp
newwindow事件说明
Syntax
Private Sub object_NewWindow2( _
ByRef ppDisp As Object, _
ByRef Cancel As Boolean)
Parameters
object
Object expression that resolves to the objects in the Applies To list.
ppDisp
Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.
Cancel
Boolean value to determine whether the current navigation should be canceled.
true
Cancel the navigation.
false
Do not cancel the navigation.
set Webbrowser.Object=ppDisp
newwindow事件说明
Syntax
Private Sub object_NewWindow2( _
ByRef ppDisp As Object, _
ByRef Cancel As Boolean)
Parameters
object
Object expression that resolves to the objects in the Applies To list.
ppDisp
Object expression that, optionally, receives a new, hidden WebBrowser or InternetExplorer object with no URL loaded.
Cancel
Boolean value to determine whether the current navigation should be canceled.
true
Cancel the navigation.
false
Do not cancel the navigation.
追问
不是这个解决思路!这个解决思路最终证实没用,不对!
微测检测5.10
2023-07-11 广告
2023-07-11 广告
IEC62133与en62133的区别如下:1. 认证机构不同:IEC62133是国际的标准,它以国际通用的标准进行生产;而en62133采用的是欧盟的标准,它使用欧盟的生产需求进行生产。2. 宗旨不同:IEC62133的宗旨是促进电气、电...
点击进入详情页
本回答由微测检测5.10提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询