Shell "explorer.exe" + " " + "http://www.csdn.net", vbMaximizedFocus

解决方案 »

  1.   

    ShellExecute hWnd, "open", "http://www.csdn.net", vbNullString, vbNullString, conSwNormal
      

  2.   

    to crystal2000(靠VB吃饭) :
    出错
    sub or function not defined
      

  3.   

    shellexecute是API函数,你要用下面的语句定义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