in
KeyDown event of
textbox copy following code..! :-O :laugh:
Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
If (e.KeyCode = Keys.Enter) Then
MsgBox("Enter key pressed")
End If
End Sub