Currency Edit Keypress

I am trying to trap the user pressing the Enter key after entering information in the CurrencyEdit control and I want it to jump to the next field as if Tab had been hit. I've tried to check the keyvalue to be equal to chr(13) and then I don't have a clue as to how to issue a keypress of a Tab.

1 Reply

DJ Davis Jebaraj Syncfusion Team May 30, 2003 02:33 PM UTC

Hi, You can use Sendkeys.Send("{TAB}") to issue a Tab press. if (keyData == Keys.Return || keyData == Keys.Enter) { // convert enter key to tab key SendKeys.Send ("{TAB}"); } Regards, Davis

Loader.
Up arrow icon