Solved

MDI PARENT WITH MDI PARENT AS CHILD

Posted on 2004-04-05
2
1,878 Views
Last Modified: 2009-10-03
I need to create a form that can contain other forms like an mdi parent in Visual Basic .NET on VS2003.

The main form of the app is an MDI form. The container form has to be a mdi child of the main mdi, which means that the container form cannot also be an mdi parent.

The problem is that when you make an MDI child an MDI container you get the following message.

“An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll

Additional information: A form cannot be both an MDI child and MDI parent.”

Why in the world Microsoft decided to make this impossible makes no sense and is one of the worst limitations in VS.

The main form of my app is frmMDImain, which is a MDI container where the menus, toolbars etc are contained. frmContainer is a MDI child of frmMDImain.

The problem is that I need to open child forms in frmContainer and I cannot set frmContainer as a MDI container due to the above-mentioned defect in VS.

I must therefore find another way of letting frmContainer contain/host other forms as if it was a MDI container. This is my problem.

Has anyone done this before? Any ideas would be appreciated.
0
Comment
Question by:FreddieD
2 Comments
 
LVL 16

Accepted Solution

by:
warturtle earned 100 total points
Comment Utility
Hi,

Have a look at this URL, which might be of some help: http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=9812

and also, this one - http://www.dotnet247.com/247reference/msgs/36/183051.aspx

Regards,

Warturtle
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
changeXy challenge 13 56
array6 challenfge 6 62
allStar challenge 1 40
parentbit challenge 3 50
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now