Use the window level accelerator event. You can assign the enter key as an accelerator. Add the select next control function in the accelerator event. This will then allow all child controls of the form / page to respond to the enter key. You will need to precede the next control function if you want to respond to say button click events, as the accelerator is evaluated first. Simply test if the button has focus, if it has then call button click event, then exit the sub before executing the next control function. This is much faster than key up event.
yes you can use the exact same code as you would in WinForms.
e.g. attach to the KeyUp event of your text box and use the following code
if (e.KeyCode == Keys.Enter) SelectNextControl(sender as Control, true, true, true, true);
Please login first to submit.