vb中webbrowser控件。打开网页后,打开新的链接时,为什么又调用IE浏览器了。而不是webbrowser控件的浏览
vb中webbrowser控件。打开网页后,打开新的链接时,为什么又调用IE浏览器了。而不是webbrowser控件的浏览器。这个怎么解决啊?...
vb中webbrowser控件。打开网页后,打开新的链接时,为什么又调用IE浏览器了。而不是webbrowser控件的浏览器。这个怎么解决啊?
展开
展开全部
Private Sub webbrowser1_NewWindow2( ByRef ppDisp As Object, ByRef Cancel As Boolean)
set Frmd = new form1
set ppdisp = frmd.webbrowser1.object
frmd.show
end if
简易多窗口浏览器,主要是ppdisp上下手。代码手工编写,绝对能行,除非我打错了。
有错误或问题请及时追问!我会即时改正。
set Frmd = new form1
set ppdisp = frmd.webbrowser1.object
frmd.show
end if
简易多窗口浏览器,主要是ppdisp上下手。代码手工编写,绝对能行,除非我打错了。
有错误或问题请及时追问!我会即时改正。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
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.
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询