Hmm one issue with the code you sent
changing the setting from Fill to Top changes the way the Dock works
'add to Dock
Top - Will allow the scroll bars to appear, but on enlarging the window the form size becomes apparent.
Thus if your form is too large for the size of the screen it works fine, but for smaller forms it does not
I would have to check the current size of the dock at adding time, as this Fill option seems to be the issue.
As docking the form using top will add the form and setup the bars, but not use the full space
Using Fill will use the full space, but chop off the forms that are larger, and not show scroll bars.
What you realy want is something in the middle. To use the full space, and to have the scroll bars
Maybe we can set the background of the dock to the same colour as the form?