Process.Start(url) broken on Windows 8/Chrome - are there alternatives?

后端 未结 5 1693
野的像风
野的像风 2020-12-09 16:21

To open a URL from a .NET application, many sites (including on StackOverflow) cite this example:

Process.Start(\"http://www.google.com/\");
<
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 16:36

    I've tried many a solution but as i'm in a UI project (wpf or winform) I ended up using an embedded browser control. Calling navigate, setting the url then target to "_blank" launches an external browser window.

    _webBrowser.Navigate(uri, "_blank");
    

    Hope this helps. DC

提交回复
热议问题