How to open Internet Explorer Window (own new Process! + no Toolba
- From: Victory <Victory@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 May 2009 01:36:00 -0700
Hi all,
I am desperately seeking for a solution to this problem:
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. I 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
.
- Follow-Ups:
- Re: How to open Internet Explorer Window (own new Process! + no Toolba
- From: Frank Dzaebel
- Re: How to open Internet Explorer Window (own new Process! + no Toolba
- Prev by Date: Re: Visual Studio 2008 - Socket C# - Nachfrage
- Next by Date: Re: Visual Studio 2008 - Socket C# - Nachfrage
- Previous by thread: Begrenzte Anzahl Eigenschaften in PropertyGrid anzeige
- Next by thread: Re: How to open Internet Explorer Window (own new Process! + no Toolba
- Index(es):