Reply to: XFT: Capture ENTER-Key in text boxJuly 26, 2011 at 7:08 pm
You can set one button on your form to “fire” when the user presses Enter. You do this by setting the property for “default” to “yes”.
Then the button should do whatever it is set to do (which you set with ButtonType property).
If you have more than one button with default set to “yes” then only one will “fire”. However, you can also dynamically set this value, so perhaps if the user enters a particular EditBox you could set the corresponding button to have its default property set to “yes” and any others set to “no”.