Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open the same IE browser from VB

Status
Not open for further replies.

mposy6474

Programmer
Sep 25, 2003
6
US
I am opening the new browser from within VB code. I would like to target the same browser on the consecutive executions of the program. How do I keep track of the opened browser and target it. I can use the Browser setting ("Reuse browser for launching shortcuts") but I can't always control the user's set up.
Thanks

Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As _
String, ByVal lpszFile As String, ByVal lpszParams As String, _
ByVal lpszDir As String, ByVal FsShowCmd As Long) As Long

lAns = ShellExecute(ByVal 0&, "open", URL,,,SW_SHOWMAXIMIZED)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top