In Desktop C# Form or window I have a search box which is TextBox, when user try to highlight the text Using Ctrl + A, The system release sound. Is there any thing that make the textbox control accept Ctrl + A?
Asked
Active
Viewed 105 times
1 Answers
1
Do try this:
private void textBox1_keyDown(object sender, KeyEventArgs e)
{
if (e.Control & e.KeyCode == Keys.A)
textBox1.SelectAll();
}

sajanyamaha
- 3,119
- 2
- 26
- 44
-
Yepp, only valid in Multi-line mode though, otherwise Ctrl+A works out of the box. – Jakob Möllås Nov 25 '12 at 17:25