>Hi Naomi.
>
>>I was able to setup initial width and height of the containers to cover the page (setting this in run-time in code seems to be ignored). So, I open the form, click on these two pages, resize the form and the containers resize OK when I switch between pages.
>>
>>Now, I close the form and don't close the application. I re-open the form and it opens with the last size remembered. But now the containers on these two pages don't occupy the whole page - they look like their initial size. If I close the application and re-start it, then the form starts with its original size and I can resize it and everything works correctly.
>
>Make sure you set Anchor to 0 before changing the size and position, then restore it.
>
>Doug
Thanks a lot, it worked like a charm.
If it's not broken, fix it until it is.
My Blog