label_click()
nResult = Shell("start.exe http://members.xoom.com/srm/", vbHide)
end sub呵呵,我看那个27分就…………

解决方案 »

  1.   

    在click事件中
    shell "http://www.csdn.net"
      

  2.   

    最可靠的做法是用api executex
      

  3.   

    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 Label1_Click()
    ShellExecute vbnullstring,vbnullstring,"http://url",vbnullstring,vbnullstring,1
    End sub
      

  4.   

    在Label1_Click()

    on error resume next
      

  5.   

    不就是shell吗?变相说那么多干什么,27分一个人得了还可以,这么多人一分就没意思了!
    我主持公道,acehq,将分给第一个说的.呵呵,其余的不要打我,我跑!!!!!!!
      

  6.   

    Option ExplicitDeclare 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 '调用浏览器或EMAIL软件
    Const MailAddress = "mailto:[email protected]"
    Public Sub WriteEmail(Optional TempSubject As String)
        '参数可选,缺省值是空
        ShellExecute 0&, vbNullString, MailAddress + "?subject=" + TempSubject, vbNullString, vbNullString, vbNormalFocus
    End Sub
    Sub VisitHttp(Optional TempHttp As String = "http://sunxiao.126.com")
        '参数可选,缺省值是http://sunxiao.126.com
        ShellExecute 0&, vbNullString, TempHttp, vbNullString, vbNullString, vbNormalFocus
    End Sub
      

  7.   

    以上所说各有偏颇最简单的办法是nResult = Shell("Explorer.exe http://yeqiufeng.363.net", ......)好好利用Explorer.exe也能直接打开网页的特性啊@_@
      

  8.   

    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 LongShellExecute me.hwnd,"Open","caotang.myetang.com","","",vbNormalFocus
      

  9.   

    用iexplorer直接打开的方法不好,因为用户默认的浏览器不一定是ie