private void txtValidateKey_KeyUp(object sender, KeyEventArgs e){ if (e.Modifiers == Keys.Control && e.KeyCode == Keys.A) { ((TextBox)sender).SelectAll(); }}