Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / programming / Internet

Opening the Internet Browser Programmatically

5.00/5 (1 vote)
15 Aug 2011CPOL 14.8K  
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)