>Hi all,
>
>I can't SetFocus to the first and only field in my container, the code is the follow,
>
>
>Method:ValorPorConta
>WITH thisform
> .Sfcontainer1.visible=.t.
> .Sfcontainer1.txnValorPorConta.Value=.txnSaldo.Value
> .Sfcontainer1.txnValorPorConta.SetFocus()
>ENDWITH
>
>
>João Batista
Does it receive focus when the value assignment is commented out?
Have you tried "KEYBOARD '{TAB}'"?
Will a .Sfcontainer1.txnValorPorConta.Click() force focus?
Will it work if it is called from .Sfcontainer1.Init()?
Will it work if another textbox is placed on the container?
Imagination is more important than knowledge