In a winforms application, is it possible to select all text using CTRL+A?
Just write the KeyDown event handler for the text box:
private void textBox1_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyData == (Keys.Control | Keys.A)) {
textBox1.SelectAll();
e.Handled = e.SuppressKeyPress = true;
}
}
UPDATE: starting with .NET 4.6.1, TextBox now has this shortcut keystroke pre-defined.