windows forms enter key event go textbox code example Example: windows form textbox enter key event if (e.KeyCode == Keys.Enter) { }