private void butCopyToClipboard_Click(object sender, EventArgs e) { try { ODClipboard.SetClipboard(textHistoryMsg.Text); MessageBox.Show("Copied"); } catch (Exception) { MessageBox.Show("Could not copy contents to the clipboard. Please try again."); } }
private void butCopyAll_Click(object sender, EventArgs e) { try { ODClipboard.SetClipboard(textMain.Text); } catch (Exception ex) { MessageBox.Show("Could not copy contents to the clipboard. Please try again."); ex.DoNothing(); } }