Open browser window

  • Thread starter Thread starter Markus Stehle
  • Start date Start date
M

Markus Stehle

Hi all!

From a console or windows forms application I open a new browser window by
using Process.Start("htttp://www.google.com")

If there is already an open browser window, the requested page is loaded
into that already existing window and is replacing the currently displayed
content. Is it possible to always open a new browser window? Also, can I set
the window size (as with JavaScript window.open())?


Thanks

Markus
 
Thanks, that works. Do you also knwo how I can modify the size of the
window?

Markus
 
It sounds more like you want a popup rather than a full new browser process. Just a thought, and may not be a perfect solution for your application but....

Add a new form to your project that has nothing in it except the AxWebBrowser control and set some initial values for it and save it. Then in your main app, instantiate a New object reference of that form, and before calling newform.show() adjust the parameters like size of the window and the AxWebBrowser control etc.

See attached text file with code snips.

Chris Langsenkamp
--------------------------------------------------------------------------------

Thanks, that works. Do you also knwo how I can modify the size of the
window?

Markus
 
Back
Top