web analytics

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

Options

codeling 1595 - 6639
@2017-11-13 15:47:34

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.

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com