I have a textbox that handles user input. In order to trap for only a full value (signified by the user pressing enter), I have done:
PrivateSub TextBox1_KeyPress(ByVal sender AsObject, ByVal e As _System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar = vbCr Then
...
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.