private void textBox1_Enter(object sender, EventArgs e){ BeginInvoke((Action)delegate { (sender as TextBox).SelectAll(); });}