MDI environment

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an MDI parent form which can host MDI children. At startup, before the
parents LayoutMdi-method is run, the parent cascades each new child created.
When I start, say 2 children, then terminates them and then start another
child, this child does not locate itself in the upper left corner within the
parent, but instead down and to the right a bit where it should have been if
the first two still existed.

I've tried to refresh the MDILayout after a new child is created by calling
the parents LayoutMdi-method. This relocates the children correctly but, as
is standard behaviour, resizes them too and I do NOT want this to happen.

Is there a way to solve this problem without having to run the
LayoutMDI-method?
 
Hi Bevo,

Set the StartupPosition for the child forms to Manual. You will be responsible for your own cascading, but you could pass along the position in the constructor of the child.
 
Back
Top