private void
textBox1_KeyDown(object sender, KeyEventArgs
e)
{
if
(e.Modifiers == Keys.Control && e.KeyCode ==
Keys.A)
{
((TextBox)sender).SelectAll();
}
}
原文:http://www.cnblogs.com/xuxiaoshuan/p/3566742.html