C Christopher Lusardi May 24, 2006 #1 Is there any simple way to do this? Thanks, Christopher Lusardi
H Herfried K. Wagner [MVP] May 24, 2006 #2 Christopher Lusardi said: Is there any simple way to do this? Click to expand... Assign the button to the form's 'AcceptButton' property.
Christopher Lusardi said: Is there any simple way to do this? Click to expand... Assign the button to the form's 'AcceptButton' property.
B Brian Hoops May 25, 2006 #3 Private Sub Textbox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Textbox1.KeyDown If e.KeyCode = Keys.Enter Then Button1.PerformClick() End Sub HTH -Brian
Private Sub Textbox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Textbox1.KeyDown If e.KeyCode = Keys.Enter Then Button1.PerformClick() End Sub HTH -Brian