How does a MDIParent position its children

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

Julia Lerman

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
 
G

Greg Robinson

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.
 
C

Chris Dunaway

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.
 
G

Greg Robinson

Chris, thought of this last night and it works. I meant to update my
post.

Thanks
 

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