Exemple #1
0
 //Ctrl+A実装
 private void ContentTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     //Ctrl + A
     if (e.Control && e.KeyCode == Keys.A)
     {
         e.SuppressKeyPress = true; //beep disabled
         ContentTextBox.SelectAll();
     }
 }
 private void Window_ContentRendered(object sender, EventArgs e)
 {
     ContentTextBox.SelectAll();
     ContentTextBox.Focus();
 }
Exemple #3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     ContentTextBox.Text = Text;
     ContentTextBox.Focus();
     ContentTextBox.SelectAll();
 }