Hi!
I'm new to c# and I stumbled across this dillema during a project: can
anyone tell me how I can emulate the action af a Tab when enter is pressed? I
saw something in visual basic that looked like this:
"To allow the Enter key to function as a Tab, enter this code in the
KeyPress event of your text boxes:
Sub Text1_KeyPress (KeyAscii As Integer)
If KeyAscii = 13 Then 'Enter
SendKeys "{Tab}"
KeyAscii = 0
End If
End Sub
This allows the user to press Enter to move from one text box to the next.
This technique will not work if you have a command button on the form whose
default property is True. The button will respond to the Enter key before the
text box sees it."
but I have no idea how to implement it in c#
Thanks!
--
Fear is the mind-killer