>You can write this statment in the last control of the pageframe
>
>Thisform.pageframe1.activepage = 2
>
>That's it !! and it will change the active page from 1st to 2nd
A more general solution, suitable to put into a custom method in the form (class?):
* method NextPage
Thisform.pageframe1.activepage = (Thisform.pageframe1.activepage % Thisform.pageframe1.pagecount) +1
The only advantage of this method is that it wraps from the last page to the first :). The PrevPage could look like this (checked it off my head only, nut should work as well):
Thisform.pageframe1.activepage = (Thisform.pageframe1.activepage-2+Thisform.pageframe1.pagecount) % Thisform.pageframe1.pagecount+1