In visual basic 28, how do you get a button to activate when a key is typed such as pressing "enter"?

I’m pretty new to visual basic and would like my program to be like regular programs where you can just press enter such as a calculator. What would be the code for that?

1 Answer

? Favorite Answer

  • Click on the form, go to properties window, and change AcceptButton property to the button that you like to trigger when Enter key is pressed

    Source(s): http://www.reflectionforbrain.com/

  • Leave a Comment