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

前端 未结 2 496
南方客
南方客 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 01:55

    For WinRT apps only, it's simply

    Launcher.LaunchUriAsync(new Uri("http://www.google.com"));
    

    Take a look here.

提交回复
热议问题