Is there any standard method to save and restore the state(which forms were open and where on screen), when using MDI forms?
Yes, i can save the values from MdiChildren to a file and restore them on application start.
That is not what I am looking for.
Is there a standard way to do this?
If you have a method that is better than serializing values from MdiChildren, do post it.
After searching quite a bit, here is the conclusion:
No, there is no standard solution.
Writing the parts of data you need to restore the window and its state is really easy.
Just serialize and write to a file on the
Closedevent on the MdiParent.(Events like
Application.Exitare too late to serialize. Forms are already closed).Read it back, populate whatever you want and then
Showthe the child forms onLoadof the MdiParent.I will accept this as the answer, cause it is what I used and I don’t like leaving around unanswered questions.