How does a MDIParent position its children

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

We are trying to control the cascading of mdi children as they open up. We
can do this with some success in the mdi child but it seems the parent
overrides what we do. What does a mdiparent do in regards to positioning
its child forms? Is there a way prior to or on the call to show to tell the
mdiparent where to position the child?
 
Greg -
Are you using the form.LayoutMDI method of the parent mdi?
This allows you to set the various basic child layouts eg: cascade,
vertical, horizontal and arrange icons.

hth
Julie Lerman
..NET MVP
 
Julie, we handle LayoutMdi in our Mdi parent's Main Toolbar. Our Mdi
parent can show up to 6 types (forms) of children. Lets call them 1, 2,
3, 4, 5 and 6. If a user works with type 1 all day and opens multiple
type 1 children, cascading works as expected.
Now, lets say a user has 5 type 1's open and then opens a type 3, does
some work, then open another type 3. We would like to have type 3's
cascade behind each other and type 1's cascade behind each other. This
is not a default behavior.
We can get it to work by repositioning type 3 inside of type 3's code,
but the MDI parent first positions the child, then we manually
reposition it to sit behind any open type 3's so it kinda shifts in the
eye of the user.
We would like ot 'cancel' the mid's default positioning or figure out
how to get the mid parent to put 1's together, 3's together, etc.
 
On Mon, 24 Nov 2003 05:04:13 -0800, Greg Robinson wrote:


Obvious question: Have you set the StartupPosition property of the MDI
child forms to Manual? I'm sure you've thought of this, but just throwing
out an idea.
 
Back
Top