Winn,
>
>>How are you switching pages? By mouse or keyboard action? If by keyboard, is there anything in keypress() method of textbox?
>
>.activepage = 2
In what method is the above code?
>
>>Also, put the following in setfocus() of textbox, and see if the setfocus() is really being called:
>>
>>activate screen
>>? program()
>
>When I ran the above in my code, the text box received focus 2 times.
>
>What do you think?
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().
Steve Gibson