>>Are there any activeX controls that could be messing with the behaviour? If you would like, you could email the form (and supporting VCX's) to me and I will have a look at it...the email address on my envelope is correct.
>>
>Steve,
> No, there are no activeX controls on the form. I think what I will do is try and catch it in the GotFocus of the next control in the tabOrder. It is just plain weird.
Winn,
That would be putting a band-aid on it...it's better to find the culprit (and you will really now how to avoid problem in the future)
How are you switching pages? By mouse or keyboard action? If by keyboard, is there anything in keypress() method of textbox?
Also, put the following in setfocus() of textbox, and see if the setfocus() is really being called:
activate screen
? program()
Steve Gibson