LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 13 OR nKeyCode = 9 OR nKeyCode = 24 * [Enter] & [Tab] & [down arrow] THISFORM.Pageframe1.Page2.Setfocus() ENDIFAs you can see, I have set focus to the next page, not a control on the page, because it somehow worked better. I put this in the .Keypress of the first control of the next page:
LPARAMETERS nKeyCode, nShiftAltCtrl IF nKeyCode = 15 OR nKeyCode = 5 * [Shift-Tab] & [up arrow] KEYBOARD "{LEFTARROW}" ENDIFI don't remember the details, but I did a bit of fiddling with this in order to get something that looked good. I certainly couldn't explain exactly why this specific code worked better than other things I tried. I don't know what the effect of Jess and Nigel's suggestion will be if .LostFocus is fired when the user selects a control outside the pageframe. They may have verified that it works well.