473,407 Members | 2,314 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,407 software developers and data experts.

MDI child form does not show MdiList property in VS2005


The How to page:
http://msdn2.microsoft.com/en-us/lib...76(VS.80).aspx

walks through the creation of MDI child forms.

It includes instructions to set the property MdiList to maintain a list of
open MDI child windows.

However, I can't find the MdiList property in the properties panel.

Can someone provide a hint?

ricardo

Nov 3 '06 #1
3 4417
You can create the child forms and "attach" them to the parent like this.
This is a sub that's performed to open a new child, called from the parent.

Private Sub OpenProductChild()
Dim frmProduct as New ProductForm
frmProduct.MdiParent = Me
frmProduct.Show()
End Sub

Then from the parent, you can access the children by enumerating through
them. This is one way to close all the child forms.

For Each childForm as Form in Me.MdiChildren
ChildForm.Close()
Next

I created the parent form using the MDI Parent Form Template, so it had
whatever settings it needed to be an MDIparent.

Hope that helps.
Robin S.
"Ricardo Maciel" <mailboxrmaciel at serverdatafactordotcomdotbrwrote in
message news:7D**********************************@microsof t.com...
>
The How to page:
http://msdn2.microsoft.com/en-us/lib...76(VS.80).aspx

walks through the creation of MDI child forms.

It includes instructions to set the property MdiList to maintain a list of
open MDI child windows.

However, I can't find the MdiList property in the properties panel.

Can someone provide a hint?

ricardo

Nov 4 '06 #2
Robin,

Thanks!
You pointed the trick: creating the MDI Parent from the form template
automatically generates code that will create child forms.

Ricardo

"RobinS" wrote:
You can create the child forms and "attach" them to the parent like this.
This is a sub that's performed to open a new child, called from the parent.

Private Sub OpenProductChild()
Dim frmProduct as New ProductForm
frmProduct.MdiParent = Me
frmProduct.Show()
End Sub

Then from the parent, you can access the children by enumerating through
them. This is one way to close all the child forms.

For Each childForm as Form in Me.MdiChildren
ChildForm.Close()
Next

I created the parent form using the MDI Parent Form Template, so it had
whatever settings it needed to be an MDIparent.

Hope that helps.
Robin S.
"Ricardo Maciel" <mailboxrmaciel at serverdatafactordotcomdotbrwrote in
message news:7D**********************************@microsof t.com...

The How to page:
http://msdn2.microsoft.com/en-us/lib...76(VS.80).aspx

walks through the creation of MDI child forms.

It includes instructions to set the property MdiList to maintain a list of
open MDI child windows.

However, I can't find the MdiList property in the properties panel.

Can someone provide a hint?

ricardo


Nov 4 '06 #3
Good. And just FYI, I believe you can change a form you have already
created *into* an MDI form by doing the following:

-- Set the IsMDIContainer property for the form to True.
-- Add a MenuStrip, ToolStrip, and StatusStrip, or other controls, to the
form.
You can easily afdd the most common items to the MenuStrip and ToolStrip
by using the smart tag on each one and selecting "Insert Standard
Items".

It's easier to start with the MDIParent template, but it's good to know
another way.

Robin S.

"Ricardo Maciel" <mailboxrmaciel at serverdatafactordotcomdotbrwrote in
message news:5A**********************************@microsof t.com...
Robin,

Thanks!
You pointed the trick: creating the MDI Parent from the form template
automatically generates code that will create child forms.

Ricardo

"RobinS" wrote:
>You can create the child forms and "attach" them to the parent like this.
This is a sub that's performed to open a new child, called from the
parent.

Private Sub OpenProductChild()
Dim frmProduct as New ProductForm
frmProduct.MdiParent = Me
frmProduct.Show()
End Sub

Then from the parent, you can access the children by enumerating through
them. This is one way to close all the child forms.

For Each childForm as Form in Me.MdiChildren
ChildForm.Close()
Next

I created the parent form using the MDI Parent Form Template, so it had
whatever settings it needed to be an MDIparent.

Hope that helps.
Robin S.
"Ricardo Maciel" <mailboxrmaciel at serverdatafactordotcomdotbrwrote in
message news:7D**********************************@microsof t.com...
>
The How to page:
http://msdn2.microsoft.com/en-us/lib...76(VS.80).aspx

walks through the creation of MDI child forms.

It includes instructions to set the property MdiList to maintain a list
of
open MDI child windows.

However, I can't find the MdiList property in the properties panel.

Can someone provide a hint?

ricardo



Nov 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Spibey | last post by:
Hi, I have an MDI application which has aboout 10 child windows. The way the app needs to work is that only one window should be visible at a time and it should be maximized within the parent...
2
by: Jim H | last post by:
I would like to have some MenuItems that are specific to my child form appear in the main menu. In the MSDN documentation: Menu merging is typically done to merge the menus of a Multiple...
2
by: Jim Shank | last post by:
I am really trying to find the best OOP way of doing this. I have a parent MDI form with multiple children and I am trying to communicate variables between them. I have been able to successfully...
3
by: Lance | last post by:
I've noticed that controls that are contained in MDI child forms fail to raise MouseLeave events if the MDI child form's MdiParent property is set to Nothing (after it was set to an existing MDI...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
2
by: Billy | last post by:
Hello! I have a main form as MDIContainer in VB.NET 2002 App. Form has menu which call several forms. I call forms that way: -- Dim f As New frmNameX() LoadForm(f) -- Procedure LoadForm...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
7
by: Terry | last post by:
I have a Mainform with a Statusbar. When opening another form or doing some processing I want to display info in the Statusbar of the Mainform. I have read a lot of articles on this & have come up...
2
by: Linda U | last post by:
This is what I have - Form1 is an MDI Container, form2 is an MDI Child of form1, Form3 is a model form. What I want to be able to do is activte form2 as a child of form1 from form3. The problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.