Hi Naomi,
do you have a value != 0 in the containers anchor property?
If so, you should store that value in a temporary variable and set the anchor to 0, then do all the positioning and then re-assign the anchor value again.
>Hi everybody,
>
>I am having a problem with a container I add to the pageframe in run-time. I want this container to cover the page. The pageframe has 17 pages.
>
>I have this code in Page.Activate
>with this.myContainer
> store 0 to .top, .left
> store this.parent.pagewidth -5 to .width
> store this.parent.pageheight - 5 to .height
>endwith
>
>and yet the container doesn't cover the page (it is much smaller than the page width and a bit smaller than height). What is wrong here?
>
>Thanks in advance.
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011