I want to open a web browser (navigating to a specified URL) on click event of a button.
Please reply soon ....
How to open a web browser in c#?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 28, 2011, 10:15 PM EDT
Try this :
System.Diagnostics.Process.Start("IExplore.exe", "www.microsoft.com");
Deepak VermaRank #672 · 3.6K reputationPosted Mar 28, 2011, 10:23 PM EDT
thanks for reply.
please give the code to do same with default web browser ?
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 28, 2011, 10:48 PM EDT
Remove The Web Browser name which is specified in Start
System.Diagnostics.Process.Start("www.microsoft.com"); it will open in your default browser.
Deepak VermaRank #672 · 3.6K reputationPosted Apr 6, 2011, 8:43 PM EDT