Thanks for that, Page Order was set correctly but not working properly at runtime - probably due to having to swap page orders on the page frame that had two pages in the base class. Set pageorder as you suggested and it works a treat.
>Check whether pagex.Pageorder is set properly. Or just set pageorder as needed in the form init event.
>
>
>>I have a page frame with six pages, and have set the page order on each page as required. In the form design mode this looks ok. But when I run the program, one of the pages appears last in order. Everything else looks ok, so I would be really grateful if anyone has an answer. Thanks