private void CopyToClipboard()
 {
     // Copy the content of the text box to the clipboard.
     MessageTextBox.SelectAll();
     MessageTextBox.Copy();
     MessageTextBox.Select(0, 0);
 }