Hi,
thak you for reply.
My form may contain couples of containers. Each container also container fews control such as image, label and etc. I need toresize my form based on the container width. Also, the container will arrange it's controls and resize itself to enable all controls in "viewed mode".
Therefore, I will loop thru all container, calculate the space needed, then resize the container, and also the form. All of the containers will be added programmatically and in invisible mode.
I found that, if my form is bigger than the container, the width returned from container.label.width is not correct. I used to change my form.width to the bugger size, then label.width will reset to correct value. WHy?
BTW, i did solve it by "forcing" all controls in container to be visible (even the container itself is not. It works!!!
Any ideas?
I am using VFP SP3.
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...