How to open a new web browser from a windows form

  • Thread starter Thread starter Todd McCarty
  • Start date Start date
T

Todd McCarty

I am trying to open a new web browser from a menu on a windows form. Can
anyone point me to a reference on how to do this? I am using C#, but any
example will work.

thanks in advance
 
Todd McCarty said:
I am trying to open a new web browser from a menu on a windows form. Can
anyone point me to a reference on how to do this? I am using C#, but any
example will work.

thanks in advance


System.Diagnostics.Process.Start("http://www.google.com");

I remember you need to make sure your application is STA, but that's default on C#.

jliu - www.ssw.com.au - johnliu.net
 
Process.Start ("iexplore");

If you want to open a site/page by default, Process.Start
(http://www.microsoft.com);

I am trying to open a new web browser from a menu on a windows form. Can
anyone point me to a reference on how to do this? I am using C#, but any
example will work.

thanks in advance
 
Hi,

If you want to create a form which would have a browser within it, then use
the Microsoft Web Browser control. Right click on the toolbar, click on COM
and select the control.

HTH,
Rakesh Rajan
 
Back
Top