我忘记了,上次还用到呢!谢谢

解决方案 »

  1.   

    Use WebBrowser ActiveX控件
      

  2.   

    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    Private Const conSwNormal = 1Private Sub Command1_Click()
        ShellExecute Me.hwnd, "open", "http://www.google.com", vbNullString, vbNullString, conSwNormal
    End Sub
      

  3.   

    Private Sub page_Click()
    Shell "Explorer http://www.52520.com"
    End Sub
      

  4.   

    '1方法一
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    Private Const conSwNormal = 1Private Sub Command1_Click()
        ShellExecute Me.hwnd, "open", "http://www.google.com", vbNullString, vbNullString, conSwNormal
    End Sub
    '2方法二
    Private Sub Command1_Click()
    Shell "Explorer http://www.52520.com"
    End Sub