Skip to content

Instantly share code, notes, and snippets.

@sergiorykov
Last active September 1, 2016 14:58
Show Gist options
  • Save sergiorykov/c338c161ab0b34335dbafbaeec6b9f14 to your computer and use it in GitHub Desktop.
Save sergiorykov/c338c161ab0b34335dbafbaeec6b9f14 to your computer and use it in GitHub Desktop.
Open Browser C#
using System;
using System.Diagnostics;
namespace Mojito.Core
{
public static class Browser
{
public static void Open(Uri address)
{
// http://stackoverflow.com/questions/58024/open-a-url-from-windows-forms
var startInfo = new ProcessStartInfo(address.AbsoluteUri);
Process.Start(startInfo);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment