mj18
Nov 15th, 2000, 09:14 AM
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?
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?