I've got a VB.NET WinForms app in which I have the need to refer the user to a web page with documentation/help. I realize the LinkButton would get the trick done, but what I want is a standard Button control to launch the system default browser when that button is clicked. The only code I can find references the Win32 API, hooking the ShellExecute command:
ShellExecute(Me.Handle.ToInt32, "Open", "http://www.stackoverflow.com/", CStr(0), CStr(0), WindowStyle.SW_MAXIMIZE)
Does anyone else know how to do this in a "proper and pure" .NET manner?
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.
System.Diagnostics.Process.Start("http://www.website.com");
should work
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