>Why the focus always skip to next object when I put "object.setfocus"?
>eq. I create 3 objects,
>1.textbox
>2.command button
>3.combobox
>
>when I put command button.setfocus on textbox.lostfocus, the focus always goes to combobox instead of command button.
>Please anyone tell me why this happened ?
>
>Thanks
You need to put NODEFAULT after your Command.SetFocus(). This will prevent VFP from automatically moving to the next field.