I have a TEdit control on my form. Once the user enters text and presses return, I would like to refocus on the same Edit control so the user can continue entering data.
In the KeyPress() procedure of Edit1 I do the following:
This does not work, in that the Edit control does not gain the focus.
However, if I place two Edit controls on the form and transfer focus back and forth between them the focus works.