Hi,
I have the following request:
I would like to open via C# a new internet explorer window which has no toolbars, but when opening the window it has to be in a new internet explorer process.
I have managed to open the internet explorer explicitly in a new process with:
ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe");
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
startInfo.Arguments = url;
Process process = new Process();
process.StartInfo = startInfo;
try
{
process.Start();
}
catch (Exception e)
{
MessageBox.Show("Exception - Could not start process!"+e, "Error", MessageBoxButtons.OK);
}
I also managed to start a new internet explorer window without toolbar and statusbar with following code:
SHDocVw.
InternetExplorer ie = new SHDocVw.InternetExplorerClass();
IWebBrowserApp wb = (IWebBrowserApp)ie;
wb.MenuBar = false;
wb.ToolBar = 0;
wb.StatusBar = false;
wb.Visible = true;
wb.Navigate(url, ref o, ref o, ref o, ref o);
//Maximize IE window, 3=maximize
ShowWindow(wb.HWND, 3);
But I don't know exactly how to do both at the same time, starting the IE in a new process and managing the appearance. We need to open the IE everytime in a new process as the opened web application needs that for session management.
Thanks in advance for your help
Regards
Victor