i am developing a mdi application. I want to have a function to allow user save their mdi child windows layout in the preference, and it will load back the layout when start up the program next time. I am using xml to save the location.x, y, width, height and windowstated of every mdi child window and mdi container. But when the mdi child windows state in maximized form, it will not load out properly in maximize form. And also it doesn't work properly when i call the load layout function in the constructor of mdi container. (the location.x and y of mdi child window is start at 0,0 rather than the saved one). Does anyone know any good function can handle the save window layout?