Hi everyones,
In the Keypress event of a form (form's base class actually) I have this piece of code:
DO CASE
CASE LASTKEY() = 19 AND nShiftAltCtrl = 2 && Ctrl+S
ThisForm.CmdSave.setfocus()
ThisForm.CmdSave.click()
In CmdSave.click() I do some processing and I do TxtBoxA.setfocus()
When I click with the mouse, to focus goes to TxtBoxA.
When I use Ctrl+S the process fire, TxtBoxA get the focus and then it loose it, the focus goes back to the form's grid
When I try to debug, using "set step on", I see the focus goes to TxtBoxA, nothing else is done, and the focus stay there. As soon as I remove the"set step on" command, the focus doesn't stay where it should.
Any ideas?
Diane Robitaille eng.