vb 求事件!webbrowser控件如何像IE一样 访问页面自动显示url地址呢?
求事件如何webbrowser1.lcocationname地址显示到combo1.text中如何做到...
求事件
如何webbrowser1.lcocationname
地址显示到combo1.text中如何做到 展开
如何webbrowser1.lcocationname
地址显示到combo1.text中如何做到 展开
2个回答
展开全部
代码如下。注意Combo1的Style属性不能为2.
=================
Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
Combo1.Text = URL
End Sub
=================
Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
Combo1.Text = URL
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询