VB webbrowser1单击弹出的窗口如何让webbrowser2弹出
VBwebbrowser1单击弹出的窗口如何让webbrowser2弹出请问ZORDER是什么意思?...
VB webbrowser1单击弹出的窗口如何让webbrowser2弹出
请问ZORDER是什么意思? 展开
请问ZORDER是什么意思? 展开
1个回答
展开全部
你在设计时有放webbrowser2吗?如果有就这样:
Private Sub WebBrowser_NewWindow2(ppDisp As Object, Cancel As Boolean)
Set ppDisp = WebBrowser2.Object
WebBrowser2.ZORDER 0
End Sub
如果没有就在设计时把WebBrowser1的INDEX改成0,然后这样:
Private Sub WebBrowser_NewWindow2(index As Integer, ppDisp As Object, Cancel As Boolean)
Set ppDisp = WebBrowser1(1).Object
WebBrowser1(1).ZORDER 0
End Sub
ZORDER 0 是把控件放在顶层
ZORDER 1 是把控件放在底层
Private Sub WebBrowser_NewWindow2(ppDisp As Object, Cancel As Boolean)
Set ppDisp = WebBrowser2.Object
WebBrowser2.ZORDER 0
End Sub
如果没有就在设计时把WebBrowser1的INDEX改成0,然后这样:
Private Sub WebBrowser_NewWindow2(index As Integer, ppDisp As Object, Cancel As Boolean)
Set ppDisp = WebBrowser1(1).Object
WebBrowser1(1).ZORDER 0
End Sub
ZORDER 0 是把控件放在顶层
ZORDER 1 是把控件放在底层
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询