>Hi there,
>
>I've got a VFP 5.0 application that I'm working on right now. I've got a grid on a form that I'm having some difficulty with. I would like to, upon leaving the last record/row via the enter key, tab key, down arrow (or even page down, if I can get that to work), have the focus go from the grid to a command button. But this only happens if the mouse is clicked on one of the command buttons. I would like the users to be able to leave the grid via the keypad.
>
>Any ideas?
>
>Thanks,
>
>Joe
The key to leave the grid is Ctrl-TAB. You can either instruct your users to use Ctrl-TAB, or use the KEYBOARD command in some method.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)