>i have set the TabStop=.F. for all CommandButtons in Container but after this when i press Up/Down arrow to goto next/Previous CommandButton then also it comes out of Container.
>
>may you send me a sample form at :
>mk_common@yahoo.com
>
>Thanks & Warm regards,
>mk.
Hi,
Try with following:
1) Leave TabStop to .T. (default)
2) Set KeyPreview on form to .T.
3) set in Keypress of your Text-, Editboxes and commandButtons in the container following:
Lparameters nKeyCode, nShiftAltCtrl
lnKC = nKeyCode
lnSAC = nShiftAltCtrl
Do Case
Case m.lnKC = 9 And m.lnSAC = 0
Nodefault
Other
DoDefault()
Endcase
and in the first object :
Lparameters nKeyCode, nShiftAltCtrl
lnKC = nKeyCode
lnSAC = nShiftAltCtrl
Do Case
Case m.lnKC = 9 And m.lnSAC = 0
Nodefault
Case m.lnKC = 24 abd m.lnSAC = 0
Nodefault
Other
DoDefault()
Endcase
Regards,
Koen