In VB 6.0 I could use the following to move the cursor to the next text box if the user hit the Enter key.
VB Code:
  1. Private Sub Text1_KeyPress(KeyAscii As Integer)
  2.    If KeyAscii = 13 Then
  3.      Keyascii = 0
  4.      Text2.SetFocus
  5.    End If
  6. End Sub

Is there a VB way to use this in .Net for a web page or do you have to use Java or HTML?

Some examples would be greatly apreciated.

Thanks!