On Jun 12, 2:15 am, "Mr. Arnold" <MR. Arn...@Arnold.comwrote:
"portCo" <woos...@gmail.comwrote in message
news:11********************@j4g2000prf.googlegroup s.com...
Hello there,
I am using Visual Basic 2005. I want to store a value when I press
enter key on the keyboard.
Could anyone help me out?
You should use Google and look-up how to use the Form and Controls Keyup
Keypress, and Keydown events. All of that should also be explained in VS
2005 Help with examples too.
Or if you wanted a quick and dirty solution - just add a button and
make it the accept button for the form and add your logic to it's
button_click event. Then any time a user hits enter it will fire the
click event and process your logic. Though, if you want to only store
values from the enter key being pressed (and not allow the user to
manually press the button) then I would go with one of the 3 key
events mentioned previously.
Thanks,
Seth Rowe