Results 1 to 2 of 2

Thread: Open NEW browser winodow!

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    6

    Angry

    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,"http://www.yahoo.com", vbNullString, _
    vbNullString, vbNormalFocus)
    End Sub


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

    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
    Guest
    Use the Shell function to Shell IExplorer.

    Code:
    Shell "C:\Program Files\Internet Explorer\IExplore.exe http://www.vb-world.net", 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