如何用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 LongShellExecute Me.hwnd, "", "http://www.sohu.com", "", "", 1
      

  2.   

    Shell ("explorer.exe   http://www.sohu.com")