コード例 #1
0
 private void CopyToClipboard()
 {
     // Copy the content of the text box to the clipboard.
     MessageTextBox.SelectAll();
     MessageTextBox.Copy();
     MessageTextBox.Select(0, 0);
 }
コード例 #2
0
 private void MessageTimer_Tick(object sender, EventArgs e)
 {
     MessageTextBox.Text = Messages.Text;
     MessageTextBox.Focus();
     MessageTextBox.Select(MessageTextBox.TextLength, 0);
     MessageTextBox.ScrollToCaret();
 }
コード例 #3
0
        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);
            }
        }