How to trigger button click event by pressing enter in a textbox? Options

codeling Posts: 1100 Points: 4620
Posted: Monday, November 13, 2017 3:47:34 PM

To trigger the click event when pressing enter key in the following textbox,

You can do this by setting the AcceptButton property of your form, then pressing enter key in any input boxes will automcatically trigger the click event of the OK button.

 
Users browsing this topic
Guest