Click here to Skip to main content
15,881,623 members
Articles / General Programming / Internet
Alternative
Tip/Trick

Opening the Internet Browser Programmatically

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
15 Aug 2011CPOL 13.5K   1   5
You're incorrect. Explorer is Windows Explorer, not Internet Explorer. Try this:System.Diagnostics.Process.Start("explorer");then this:System.Diagnostics.Process.Start("iexplore.exe", "http://www.codeproject.com");and this:System.Diagnostics.Process.Start("winword.exe",...

You're incorrect. Explorer is Windows Explorer, not Internet Explorer. Try this:


C#
System.Diagnostics.Process.Start("explorer");

then this:


C#
System.Diagnostics.Process.Start("iexplore.exe", "http://www.codeproject.com");

and this:


C#
System.Diagnostics.Process.Start("winword.exe", "http://www.codeproject.com");

So, just because you got to the intended web site doesn't mean you used the right application.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO Marois Consulting
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: No dude, you should not use iexplore. First, it is a silly, ... Pin
Wolfgang_Baron15-Oct-11 6:40
professionalWolfgang_Baron15-Oct-11 6:40 
GeneralRe: This opens the page with default browser System.Diagnostics.... Pin
DNikolov23-Aug-11 5:10
DNikolov23-Aug-11 5:10 
Generalyea am with you bro as you give much info btn explorer.exe a... Pin
soul10811-Sep-11 9:59
professionalsoul10811-Sep-11 9:59 
GeneralI said Internet Browser -> Not Internet Explorer. When you t... Pin
Caner Korkmaz15-Aug-11 22:41
Caner Korkmaz15-Aug-11 22:41 
GeneralRe: No dude, I'm sure Kevin is right. You should use <code>iexpl... Pin
thatraja17-Aug-11 21:35
professionalthatraja17-Aug-11 21:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.