I want to open IE from a forms application. A bit like daniweb does it btw.!
I have the following in a button click eventhandler:
Process MyProcess = new Process();
//string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
MyProcess.StartInfo.Domain = "";
MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe";
MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
MyProcess.StartInfo.CreateNoWindow = false;
MyProcess.Start();
This is what I want, but it just opens a IE window.
The next code goes to the website I want, but opens it in a maximised window or it opens in IE if it is already open which is not what I want.
string link = "www.google.com";
System.Diagnostics.Process.Start(link);
I googled,daniwebbed etc. for hours, perhaps with bad search strings, but could not find an answer.
Anybody any suggestion? It must be simple in my opinion, but my mind has one of its off days I think...