>
> i supose that u don't understand me look
>
> i've a one formset on this formset i've 3 forms, when i press commanbutton i
> like thisformset.frmnuevo.show(1) but this form don't have focus i wich that
> form like the focus and the other form can't make anythig, but if a press the
> button than be in the principal form this button is enabled.
>
Yes, I do understand. You have a form and pres something like "NEW". then a second form opens, You enter the information for the new record and when You're done, You press "SAVE", the second form closes and the first one gets focus again, correct?
There is a few approaches You can take (I wouldn't work with formsets nowadays but that's just a matter of taste, I think - never liked them).
- You have VFP9, so You can do lovely depending things using BindEvent(). This is just a beauty
- You could have the "new"-form be a modal form (although... formsets... might not work there)
- You could disable the first form while You are in the second
- You could hide the first form while in the second.
...
the only thing I am trying to say is that You *can't* set the focus to another object while You are in a click()-event. So You need to employ a trick to get out of the Button's click() and *then* set the focus to the second form.
got me?
however, I could be completely standing on the line