示例#1
0
 private void Window_Activated(object sender, EventArgs e)
 {
     TxtInput.Focus();
     TxtInput.SelectAll();
 }
        } // end method InitialiseControlStatus 

        // select all in the specified text box
        private void SelectText()
        {
            TxtInput.Select();
            TxtInput.SelectAll();
        } // end method SelectText
示例#3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     TxtInput.Focus();
     TxtInput.SelectAll();
 }