再vb中怎样启动浏览器,并指定网址?
谢谢!!!

解决方案 »

  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 SW_SHOWNORMAL = 1
    Private Sub Command1_Click()
     ShellExecute Me.hWnd, vbNullString, "www.gzhdx.com", vbNullString, vbNullString, SW_SHOWNORMALEnd Sub
      

  2.   

    建立一个x.bat 文件
    start /max "c:\program files\internet explorer\iexplor.exe" http://www.com.cn
    private sub command1_click()
    call shell ("x.bat" ,vbminimizedfocus)
    end sub 
      

  3.   

    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 Sub Command1_Click()
    ShellExecute 0, "Open", "Http://www.CCTV.com", "", "", vbNormalFocus
    End Sub
      

  4.   

    同意楼上的和tztz520(午夜逛街) 的