private void CopyToClipboard() { // Copy the content of the text box to the clipboard. MessageTextBox.SelectAll(); MessageTextBox.Copy(); MessageTextBox.Select(0, 0); }
private void MessageTimer_Tick(object sender, EventArgs e) { MessageTextBox.Text = Messages.Text; MessageTextBox.Focus(); MessageTextBox.Select(MessageTextBox.TextLength, 0); MessageTextBox.ScrollToCaret(); }
public async void AsyncDisplayInformation() { while (true) { MessageTextBox.Text = Messages.Text; if (AutoRollChk.Checked) { MessageTextBox.Focus(); MessageTextBox.Select(MessageTextBox.TextLength, 0); MessageTextBox.ScrollToCaret(); } await Task.Delay(500); } }