I tried this code:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (Convert.ToInt32(e.KeyChar) == 13) { MessageBox.S
You could use this code:
abc_KeyDown(abc, new KeyEventArgs(Keys.Enter));