Reuse windows for launching shortcuts - 2 Questions

V

VJ

I have the option "Reuse windows for launching shortcuts" checked in my IE.
Now in my client code on a click event of a link, I do the following,

Dim procWebPages As Process
Dim strWebPageLink As String

'Build the web link here
' End Build web link here..

procWebPages = New System.Diagnostics.Process
' Start Internet Explorer, passing in a Web page.
procWebPages.Start("IExplore.exe", strWebPageLink)

Question1: Everytime I click it opens the link in a new window, it does not
reuse any existing window. How do I make this happen?

Question2: Also how can I make it open in a window that my application has
launched? I don't want to open in any existing IE window, only in IE window
that my application has launched. The IE window my application launched will
have our company name in the Title at the starting.

Thanks
VJ
 
H

Herfried K. Wagner [MVP]

* "VJ said:
I have the option "Reuse windows for launching shortcuts" checked in my IE.
Now in my client code on a click event of a link, I do the following,

Dim procWebPages As Process
Dim strWebPageLink As String

'Build the web link here
' End Build web link here..

procWebPages = New System.Diagnostics.Process
' Start Internet Explorer, passing in a Web page.
procWebPages.Start("IExplore.exe", strWebPageLink)

Question1: Everytime I click it opens the link in a new window, it does not
reuse any existing window. How do I make this happen?

Does it work if you just call 'Process.Start' on the HTML file without
specifying "IExplorer.exe"?
 
V

VJ

Yes it does not work.. That answers my first question.. Now how do I do the
second one??

Thanks
VJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top