Winn,
We'll get this rabbit hunted down :)
How did you determine that it had focus? Just because setfocus() method fires does not mean it had focus. Did the gotfocus() fire?
Could you post the interactiveChange() code from the textbox in page 1? In your interactive change, add the following lines before your code that changes the active page. When the debugger fires up, press F8 and see where your code goes.
set step on
debug
If these objects are from the VFP base classes, you could replace them with base class objects to see if your classes are causing problems.
>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.
Steve Gibson