>>Hi Fabio,
>>
>>I'm not sure, why your code didn't work in our situation. E.g. it did what it was intended to do, but it cause undesired problem with the combobox class, which we had long time to debug.
>>
>>Anyway, this is how we resolved the problem with putting focus on the first control of the page: we put this.parent.activepage = 1 in the first page Activate method (only for the first time this page is activated) and it solved the focus problem. Don't ask me why...
>>
>
>yes,
>when you do
>pf.activepage = nValue
>a bug appear, it killed the other bug.
>
>Me memory that does not have to use ActivePage
>in order to change page in VFP8 and before,
>but check in VFP9, me seems that it has been arranged.
May be your trick will work in VFP9. We are now working back in 8, because we hit another problem in our development...
If it's not broken, fix it until it is.
My Blog