>>This is what I'm going to try now - SetFocus after ActivePage. I'm also thinking, that may be something changing the active page after my code? Say, may be form's Activate changes it to something else?
>
>Yes, I was thinking about that, then forgot to mention it. If you suspect that, you should put a breakpoint for when (for example) ThisForm.PageFrame1.ActivePage changes.
I think I just figured this out. Another code executes
thisform.SetAll('enabled',.f.)
thisform.myMethod()
thisform.SetAll('enabled',.t.)
so, because the pageframe is disabled, I can not switch focus.
Looks like I may want to re-enable earlier or somehow pass back the page to set focus or something else.
If it's not broken, fix it until it is.
My Blog