If you do not want to use keystroke events, you will have to override ProcessCmdKey
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Return) { MessageBox.Show("You pressed the Enter key"); } return base.ProcessCmdKey(ref msg, keyData); }
source share