473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Windows MDI Forms and MDI Children Forms

2
Hello,

I am taking a stab at creating a Windows form and need to create several children forms to this application as well. I come from the .net web development arena but have never created a WinForm based application before.

My understanding is that I need to create an MDI application with MDI children associated with it. I have created the MDIParent form with all of the associated toolbars and status bars and a layout control.

I just created a second form that I need to act as a child to the MDIParent. Immdiately I could not find out how to attach this to the MDIParent. Further research on Microsoft is giving me the impression that I should have created a form that inherits from the MDIParent.

Is this the correct approach?

I really just want to have new children open up based on what is selected in my menu system.

Any comments would be greatly appreciated.

Sincerely,

Tim
Nov 20 '06 #1
2 3610
bplacker
121 100+
Once you have a form created which has the MdiParent property = true, here is what you need to do in order to open up a form as an Mdi child:

dim childForm as frmName 'where frmName is the form you want to open
childForm.MdiParent = Me '(or whichever form is the MdiParent)
childForm.show()
Nov 20 '06 #2
tmf123
2
bplacker,

Thanks for your time in replying.

I'm really surprised that with all the advancements that Microsoft made with VS2005 that they didn't come up with a way you could accomplish this through the GUI. This should be something you could accomplosh through the properties panel or by right clicking on the form itself.

Thanks again.

Tim
Nov 20 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Wayne Gibson | last post by:
Hi all, Please ignore the other post.. The cat jumped on the machine and sent it before I could stop it!! Was wondering if anybody has expericence this problem.. I am writting an application...
2
by: Peter | last post by:
Hi Everyone, I need your help with VB .Net forms. I have an MDI Parent form and several MDI Children in my VB .Net App. I have noticed that when I close the MDI Parent the closing event of...
1
by: WKC | last post by:
I have a parent window that potentially open a lot of pop windows(let call them children windows) from different page on the parent. Over time, those children windows can add up on the screen if...
8
by: Bf | last post by:
I was creating test projects using c# and was surprised that there seems to be only a form based windows applications available. Is it safe to assume that classic window applications that utilize a...
6
by: Edwinah63 | last post by:
Hi everyone, could someone give me some thoughts on the best way to manage mdi parent and child forms? in vb6 i could scroll through the forms collection and determine which forms were...
9
by: Yuk Tang | last post by:
I'm trying to create webpage-style frames on a form, and all the get parent size and resize children malarkey is giving me a headache. What I would like to do is define some frames on the parent...
23
by: Chukkalove | last post by:
Im sorry, I dont know the correct description for a hierarchy of parent and child forms. I have a main form that opens a child form modally. This child form in turn opens it's own child form...
8
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query...
3
by: bsturg21 | last post by:
Hello, I have a windows form that has a series of linklabels on it, and I need to have each linklabel, when clicked, open a separate windows form that has a single paramter passed into it. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.