public static void CopyTextToClipboard(string text)
{
try
{
Clipboard.SetText(text);
}
catch (System.Runtime.InteropServices.ExternalException)
{
Factory.GUIController.ShowMessage("Unable to copy the text to the clipboard. The clipboard might be in use by another application.", System.Windows.Forms.MessageBoxIcon.Warning);
}
}