>Hi all,
>
>I wonder if there's a way to do this. I have three grids in a form and I've found that after I tab through all the textbox objects in the form, at one point the grids catch the focus and don't release it. Grids don't have gotfocus and lostfocus methods so I have no idea where to programatically assign focus to a different object.
>
>Any ideas?
>
>Thanks
>
>Gil
This may or may not be the best way to do this, but it is how I have handled it in the past-
IN the form.keypress event (form.keypreview must be .T.)
IF nkeycode = 9 and thisform.activecontrol.name = "mygrid1"
nodefault
thisform.txtnextcontrol.setfocus
ENDIF
Erik Moore
Clientelligence