Results 1 to 2 of 2

Thread: Open NEW browser winodow!

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000


    Im currently using the following way to open a browser winodow:

    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()
    Call ShellExecute(0&,vbNullString,"", vbNullString, _
    vbNullString, vbNormalFocus)
    End Sub

    However, if i have a browser open that is pointet for eksample at, it will take this browser and go away from to go to

    It is my goal to get the program to open a new window, and then load the URL in it, istead of using a window that i might have open.

    .... Cinda like in html: TARGET = "_blank"

    Does anybody know how this is done?

  2. #2
    Use the Shell function to Shell IExplorer.

    Shell "C:\Program Files\Internet Explorer\IExplore.exe", vbNormalFocus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width