I'm trying to provide a link to my company's website from a Windows Form. I want to be well behaved and launch using the user's preferred browser.
What is the best way to open a URL in the user's default browser from a Windows Forms application?
You can right-click on the icon and then click on the 'Open Web Browser'. A Web browser window will open and your application will be running inside.
This article will walk you through it.
Short answer:
ProcessStartInfo sInfo = new ProcessStartInfo("http://mysite.com/"); Process.Start(sInfo);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With