Hi

I have a program using a mdi area and each document is shown in this, it works fine and loads the subwidget fine. The program opens the files which were open last time it was run on start up.
The issue is if it is only opening one file it manages to do so but seems unable to set it to be the active MDI subwindow so i cannot close it or save it. is there anything that has to be done specially for it to be active. Please note that if it has to open two subwindows then it all works fine and if it opens none on start up and then i create just 1 new one then it works fine aswell.

Thanks

James