Sorry for the long title, but I couldn\'t think of another way to put it.
I have this:
private void textBoxToSubmit_KeyDown(object sender, KeyEventAr
You can Use KeyPress instead of KeyUp or KeyDown its more efficient and here's how to handle
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { e.Handled = true; button1.PerformClick(); } }
hope it works