Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MDI PARENT WITH MDI PARENT AS CHILD

Posted on 2004-04-05
2
Medium Priority
?
1,916 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
warturtle earned 300 total points
ID: 10765851
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Starting up a Project

598 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