Having an MDI Container Form within another MDI Container

D

Doc John

I have a "global" MDI which will contain everything in the application.
Since the application itslef will include three different "environments"
with their own child Forms, I was wondering if I could load any of these MDI
containers (or environments) so that their parent is the global MDI form.
Basically it's like having three different applications opening inside my
main MDI form.

Thanks.
 
L

Linda Liu [MSFT]

Hi Doc,

I am sorry to say that we couldn't have an MDI container within another MDI
container. If we do that, we will get an error stating 'Form cannot be both
an MDI child and MDI parent.'.
Basically it's like having three different applications opening inside my
main MDI form.

What do you mean by the 'different applications'? Are they executable
programs? I don't think we could have an executable program opening inside
an MDI container of another program.

Could you please explain more about what you really want? Maybe there's a
workaround to it.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

Doc John

I'm not referring to three different executables; I'm talking about three
different "containers" opening up inside the "master" container.
 
L

Linda Liu [MSFT]

Hi Doc,

Thank you for your reply.
I'm talking about three different "containers" opening up inside the
"master" container.

Based on my understanding, both the three different "containers" and the
"master" container you have mentioned are forms.

I suggest that you set the "master" form as the MDI parent. Change the
three different "containers" forms to be normal forms ( I mean non MDI
parent), if they were.

You may place a Panel on the "container" form and create a UserControl for
each child form that are shown in the "container" form. Show the
UserControl in the Panel within the "container" form instead of showing the
child form.

Hope this helps.
If my suggestion is not appropriate to your practice, please feel free to
let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support
 
L

Linda Liu [MSFT]

Hi Doc,

How about the problem now?

If you still need our further assistance, please feel free to let me know.

Thank you using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support.
 

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