How do you set a process to run on the press of the enter key, as in using a text box to run its contents when the user presses enter at the end of inputting the data.
[tt]Private Sub TxtBox_KeyDown(sender As System.Object, e As System.Windows.Forms.KeyEventArgs)
If e.KeyCode = Keys.Enter Then
' call your process
End If
End Sub[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.