>Naomi,
>
>Subsequent container resizes shouldn't need any other code, what works to set the initial sizes/positions should work for runtime resizing. If it doesn't you should look at the pseudo code in my last reply.
I assume you mean the container Anchor should be set to something - is 45 the correct setting?
Or I'm missing something again?
Using your idea - do I have to set Anchor settings appropriately for all controls (but in the initial re-position set them to 0 and only then to right values at the end)?
>
>>I got the code working correctly by placing the code in the Init of the container. But now I'm facing another problem. When I re-size the form the inner controls do not want to resize properly. I tried using 45 for anchor settings of the container and calling code to adjust positions from Resize - this didn't work properly. Tried several other ideas - nothing worked so far.
>>
>>In other words, I only have a partial success now - the form starts with listboxes / buttons positioned correctly, but once I start playing with resize, it goes out of control.
If it's not broken, fix it until it is.
My Blog