What is definitively the best way of performing an action based on the user\'s input of the Enter key (Keys.Enter) in a .NET TextBox, assuming owne
Keys.Enter
TextBox
You can drop this into the FormLoad event:
textBox1.KeyPress += (sndr, ev) => { if (ev.KeyChar.Equals((char)13)) { // call your method for action on enter ev.Handled = true; // suppress default handling } };