I've made a huge app which has a main MDI client, and a lot of forms which are always resized to match the MDI size.

To resize them I make a for loop using the forms object inside the resize event of the MDI.

If I maximize the MDI, and then I go to the desktop using for example the windows key + D once I show my program back the form shown in the MDI isn't resized as it should. It seems to be caused because some scrollbars are shown at first.

Any tip on this problem?