>Hi David,
>
>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.
>
Get rid of the anchors and place all resizing code in Form.Resize event. It will work.
Edward Pikman
Independent Consultant