Open browser window

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
 
M

Markus Stehle

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

Markus
 
C

Chris Langsenkamp

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top