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

Question about MDI-Child Closing events

The Closing event is broadcast by the multi-cast delegate which sends the
event to all subscribed delegates.

I wonder if the MDI container receives this event and then sends one to each
MDI-Child

or is each child a subscriber to the first event mentioned here?

Anyone know?

Thanks


Dec 13 '06 #1
4 4027
Hi,

Just curious?

An MDI container is just an instance of Form and so is its children. Also,
an MDI container has a reference to each of its children. Now I don't know
what the actual implementation is, but all the container needs to do in the
event that it's being closed is to iterate over its child forms collection
and invoke the OnClosing method on each.

(Note: the FormClosing event should be handled by custom code in the 2.0
Framework instead of Closing).

--
Dave Sexton

" Franky" <fr***********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
The Closing event is broadcast by the multi-cast delegate which sends the
event to all subscribed delegates.

I wonder if the MDI container receives this event and then sends one to
each MDI-Child

or is each child a subscriber to the first event mentioned here?

Anyone know?

Thanks


Dec 13 '06 #2
Franky,

The MDI container does not auto-subscribe to the event and then notify
every MDI child that another form is closing. You would have to wire that
up yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

" Franky" <fr***********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
The Closing event is broadcast by the multi-cast delegate which sends the
event to all subscribed delegates.

I wonder if the MDI container receives this event and then sends one to
each MDI-Child

or is each child a subscriber to the first event mentioned here?

Anyone know?

Thanks


Dec 13 '06 #3
thanks

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:ez**************@TK2MSFTNGP06.phx.gbl...
Hi,

Just curious?

An MDI container is just an instance of Form and so is its children.
Also, an MDI container has a reference to each of its children. Now I
don't know what the actual implementation is, but all the container needs
to do in the event that it's being closed is to iterate over its child
forms collection and invoke the OnClosing method on each.

(Note: the FormClosing event should be handled by custom code in the 2.0
Framework instead of Closing).

--
Dave Sexton

" Franky" <fr***********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>The Closing event is broadcast by the multi-cast delegate which sends the
event to all subscribed delegates.

I wonder if the MDI container receives this event and then sends one to
each MDI-Child

or is each child a subscriber to the first event mentioned here?

Anyone know?

Thanks



Dec 14 '06 #4
thanks

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:er**************@TK2MSFTNGP04.phx.gbl...
Franky,

The MDI container does not auto-subscribe to the event and then notify
every MDI child that another form is closing. You would have to wire that
up yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

" Franky" <fr***********@a-znet.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>The Closing event is broadcast by the multi-cast delegate which sends the
event to all subscribed delegates.

I wonder if the MDI container receives this event and then sends one to
each MDI-Child

or is each child a subscriber to the first event mentioned here?

Anyone know?

Thanks



Dec 14 '06 #5

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

Similar topics

38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
4
by: LenS | last post by:
Hate to ask this dum question (since I've been hiding under a rock). But if the MDI UI model is/was depreciated. What is the new UI model. Would love some links that explain in gerneral and...
2
by: Anthony Nystrom | last post by:
I have a mdi parent which has a control that I have attached. Within this control are the procedures I use to open mdi children. How do I explicitly maximize and minimize children rather than have...
14
by: SStory | last post by:
I am trying to make a splash screen for my vb.net app. It is an mdi app. including the splash code produces wierd results. not inluding makes things fine. Also have tried loading the splash...
13
by: Sylo | last post by:
Hi, I'm french and I don't find the answer at my question. You are my last chance and sorry for my english... I'm in VB .NET 2002 I have a MDI form with the property ControlBox at FALSE. When...
1
by: Maileen | last post by:
Hi, I have a FMain form which is a MDI container form. after I have 2 forms FCustomer and FPrice which should be displayed inside my FMain MDI form. However, I don't want to have some side...
5
by: Matthew Hood | last post by:
Here's a interesting question for the guru's out there. I've created a VB.NET class library with a couple of forms that I have successfully got to work from within MS Access using COM interop and...
7
by: rforman1 | last post by:
Suppose I do this: let's say that in my vb.net app's main/MDI form, I declare a form-level variable of type Form1, where Form1 is another form (more technically, I know, another class which itself...
1
by: Ann Huxtable | last post by:
I am writing an application which consists of a toolbar and a "monitor" window. I want the monitor window to be able to show process information from different running processes (each in its own...
7
by: Fred | last post by:
Hi, I have an MDI form and i want to use the background to display data relevant to the application. Basically its just a load of labels in groupboxes. It works except the groupboxes sit onto...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.