Opening Browser

R

Ryan Moore

Is it possible, when using:

System.Diagnostics.Process.Start(-- a web page --);

multiple times, to always open the link in the same browser window, instead
of creating a new instance of the browser each time?

thnx
 
N

Nicholas Paldino [.NET/C# MVP]

Ryan,

Not really. You would have to code it specifically to do that. You can
use Process.Start to load the initial instance, but from that point on, you
would have to call that specific instance.

Fortunately, there is a way to do that. Check out knowledge base
article 176792, titled "How To Connect to a Running Instance of Internet
Explorer", located at (watch for line wrap):

http://support.microsoft.com/default.aspx?sd=msdn&scid=kb;en-us;176792

The code is for VB6, but it is easily adapted to .NET (with a little COM
interop).

Hope this helps.
 

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