Steve,
I took out the code in the next object in the tab order that sets focus the second time. When ran the text box only receives focus once, but the focus is on the next object. So it had focus, but not for long.
>>I think setfocus() is being called in 2 different places *grin*. But, from what you are describing, it is not really getting focus...to experiment with the firing order, you can put the same code (activate screen/? program()) in when() and gotfocus().
>
>OK.
Winn Pauley