Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Using a process instance again

$
0
0

I've started an IE process like this:

Process.Start("iexplore.exe", "http://www.google.com");

Is it possible to grab the handle for this process and use it again like this:

Process currentProcess = Process.Start("iexplore.exe", "http://www.google.com");

currentProcess.StartInfo.FileName = "http://www.microsoft.com";

currentProcess.Start();

This piece of code produces a "The system cannot find the file specified" exception, but is it possible to change the current IE page process to another URL programmatically?

Thanks in advance for any tips


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>