>>Hmmm...I have not run into this issue and I've used this code for many moons. I'll have to look into that and post some followup revised code.
>>
>
>If you haven't had it occur, it's 'cause you always design your pagesframes with the right number of pages to begin with. :-) I don't or can't. If you add pages later, and reposition the order, then ActivePage fails.
That's why in my "Page Tab Chameleon" I have the code
IF This.Parent.Parent.ActivePage = This.Parent.PageOrder
....
:)
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison