Add a handler for your TextBox’s KeyDown event. (This assumes you set the AcceptsReturn property to False).
Then in your KeyDown eventhandler, have code such as:
[C#]
if (e.KeyCode = Keys.Enter)
SendKeys.Send('{TAB}');
[VB.NET]
If e.KeyCode = Keys.Enter Then
SendKeys.Send('{TAB}')
EndIf
Share with