private void LaunchUrl(string url)
{
System.Windows.Forms.DialogResult result = System.Windows.Forms.DialogResult.None;
try
{
Process.Start(url);
}
catch
{
result = System.Windows.Forms.MessageBox.Show("Unable to open external browser. Copy to clipboard?", "Link Error", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Exclamation);
}
// Just in case
try
{
if (result == System.Windows.Forms.DialogResult.Yes)
{
System.Windows.Clipboard.SetText(url);
}
}
catch { }
}