>>You can set the focus to the textbox using a timer. Put a timer on the form, Interval = 200, Enabled = .F.
>>In the Timer() event of the timer write:
>>
>>THIS.Enabled = .F.
>>THISFORM.MyButton.SetFocus()
>>
>>
>>In the valid of the textbox, instead setting the focus to the button, just enable the timer:
>>
>>THISFORM.tmrFocus.Enabled = .T.
>>
>>
>>HTH
>
>Hey, Christian, you're a fundamentalist of timers. This is the second time you suggest me a timer (last time was a very good idea and still working) and now it is not necesary. I solved problem with "afterrowcolchange" method. There I put "setfocus" and everything went right.
>
>No logic for me but it worked.
>
>Thank you very much. Excuse my ignorance, what's "HTH"???
>
> Héctor
HTH means "Hope this helps!" You are right, I'm addicted to timers!
If you click on the "Options" tab besides of the message header you can select "Enable acronyms" and then those are spelled out in the message, so you won't need to guess.
Christian Isberner
Software Consultant