Reputation: 1373
Is there a way in .NET to have a Process open the default web browser with no address bar and no tabs, WITHOUT using kiosk mode? I can't use the WebBrowser object because it uses IE7, and the pages that need to be opened use JavaScript. I can't use kiosk mode because the client needs the window to appear in a specific area of the screen. I also need to maintain access to the browser because I have to know when the page is closed.
Upvotes: 3
Views: 4821
Reputation: 1058
If you want to acheive browser automation then you should use Selenium webdriver
Upvotes: 1
Reputation: 11840
Try this:
dynamic ie = Activator.CreateInstance(Type.GetTypeFromProgID("InternetExplorer.Application"));
ie.AddressBar = false;
ie.MenuBar = false;
ie.ToolBar = false;
ie.Visible = true;
ie.Navigate("www.google.com");
This uses automation to achieve what you want.
You can also set the position, add event handlers, etc.
The documentation for this interface is here.
Upvotes: 6