Opening Browser

  • Thread starter Thread starter Ryan Moore
  • Start date Start date
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
 
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.
 
Back
Top