>I have a textbox in a grid where I trap for the return key in the keypress event:
>
>
>IF nKeycode = 13
> NODEFAULT
> Thisform.pEdit()
>Endif
>
>
>The only problem is the keypress event never fires! For that matter, I put a wait window in the gotfocus event, and that event never fires either. Can anyone enlighten me as to what may be going on here?
Maybe textbox is not the CurrentControl or Dynamiccurrentcontrol. In BRCC this could work better :
if lastkey()=13 and !mdown()
NODEFAULT
Thisform.pEdit()
Endif
Cetin