Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  How to open a new browser (Thursday, December 23, 2004)




Found the following interesting discussion in the Newsgroups:

How to open a new browser
by:Anonymous

Hi,
I used the following code to open a browser:

System.Diagnostics.Process.Start(url)

however, it took the latest activate opened browser (if exists already). I'd like to know how to open such web page in a new browser A, and every time I run the code again, the web page must be opened only in this browser A.

Thanks in advance


 Reply:
by:William Ryan eMVP

 Try Process.Start("iexplore.exe", url)

--
W.G. Ryan MVP Windows - Embedded

http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/


 Reply:
by:Anonymous

 Thanks William,

It works fine. How about the situation for checking if the browser is already openned?









0 Comments:

Post a Comment

 
Previous Posts
    - Opening an existing file on my PC
    - Convert charref ({) to normal letters
    - Convert charref ({) to normal letters
    - Using projects
    - Help with Datagrid events please.
    - Quotes within a text string
    - Quotes within a text string
    - Set the default "initial" value of a ComboBox
    - Re: Restrict keys in textbox w/o KeyAscii?
    - Returning values FROM window form

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland