Opening a URL in the default browser in a Windows 8 desktop application

前端 未结 2 499
南方客
南方客 2021-01-02 01:32

I am using System.Diagnostics.Process.Start from a desktop application to start the default browser to visit a link, as below. This is using C# with .NET 4.0 o

2条回答
  •  佛祖请我去吃肉
    2021-01-02 02:12

    It seems that you need to specify the process name under Win8. The answer below comes from Armin's answer here.

    var startInfo = new ProcessStartInfo("explorer.exe", @"http://www.google.com");
    Process.Start(startInfo);
    

提交回复
热议问题