首页 > Web开发 > 详细

vb6动态创建webbrowser

时间:2014-08-21 11:13:54      阅读:536      评论:0      收藏:0      [点我收藏+]
Option Explicit
Private WithEvents IE As VBControlExtender

Private Sub Command1_Click()
    Dim IE
    Set IE = Me.Controls.Add("Shell.Explorer.2", "IE", Me)
    IE.Top = 0
    IE.Left = 0
    IE.Width = 5000
    IE.Height = 5000
    IE.Width = Me.ScaleWidth
    IE.Height = Me.ScaleHeight
    IE.Visible = 1
    Dim WebBrowser
    Set WebBrowser = IE.Object
    WebBrowser.Silent = True
    WebBrowser.Navigate "http://www.baidu.com"
End Sub

Private Sub IE_ObjectEvent(Info As EventInfo)
    Debug.Print Info.Name
End Sub

 

vb6动态创建webbrowser,布布扣,bubuko.com

vb6动态创建webbrowser

原文:http://www.cnblogs.com/nanfei/p/3926567.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!