Quote Originally Posted by gilman View Post
However, it is necessary that the container has at least the same size as the form to be loaded, since otherwise, when reducing the initial form to its minimum size, the contained form would not be resized and a strange result would result.
That was the problem. First time I tested your solution it failed with some "subforms", that's why I went to the "container" propertie solution that worked with all forms but the root of the problem was that the subforms that does not fit have 20 twips more than the container. You know, Murphy's law, I tested only with the ovesized forms, with the other the original code works well.

With the right dimensions the container propertie is useless so I've deleted if and back to the original code in that part.

Thnks