MDI environment

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?
 
M

Morten Wennevik

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top