vb 调用ShellExecute问题,打开ie的时候只用一个页面,我想每次调用都打一个新ie页,请高手赐教。谢谢。在线等

解决方案 »

  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 LongPrivate Sub Command1_Click()
    ShellExecute 0&, "open", "http://www.163.com", 0&, 0&, 1&
    End Sub这样做不行吗?我用IE7,是打开一个新的页面
      

  2.   

    ShellExecute 0, "open", "Iexplore.exe", "http://www.sina.com.cn", "", SW_SHOWNORMAL这样不行吗?我用IE6,一样打开新页面。
      

  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 LongPrivate Sub Command1_Click()
    ShellExecute Me.hwnd, "open", "http://www.baidu.com", 0&, 0&, 1&
    End Sub