>>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.
Thanks, I introduced a new property nPageToActivate and fixed the problem.
If it's not broken, fix it until it is.
My Blog