I want to make my WPF application open the default browser and go to a certain web page. How do I do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For desktop versions of .NET:
For .NET Core, the default for
ProcessStartInfo.UseShellExecutehas changed fromtruetofalse, and so you have to explicitly set it totruefor this to work:To further complicate matters, this property cannot be set to
truefor UWP apps (so none of these solutions are usable for UWP).