private void textBox1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) textBox1_Leave(null, null); }