473,668 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4040
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******** ********@TK2MSF TNGP06.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.co m

" Franky" <fr***********@ a-znet.comwrote in message
news:%2******** ********@TK2MSF TNGP06.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******** ******@TK2MSFTN GP06.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******** ********@TK2MSF TNGP06.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.c omwrote in
message news:er******** ******@TK2MSFTN GP04.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.co m

" Franky" <fr***********@ a-znet.comwrote in message
news:%2******** ********@TK2MSF TNGP06.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
5052
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 out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
4
2297
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 specific terms. Len Sumnler
2
1156
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 them reopen as new. I have set a flag on a test of one and yes I can easily tell if the form is open, but how do I maximize it without the user having to select the maximize button. Rather I would like it to maximize when the user selects the...
14
6686
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 form from: * load event of main mdi parent
13
3685
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 the MDI Form appears, no problem, we have not ther controlbox. But when I maximize the MDI Form, the controlBox appears and I DON'T WANT THAT !!!!!
1
896
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 effect of MDI-childform behaviors. 1. how can i avoid that my FMain form display in his text : MyApp - , when I open FCustomer form as childform ?
5
4326
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 VBA. (Working, meaning it hasn't crashed on me yet... ;-). I Would anybody know how to take this VB.NET Winform (using it's handle, subclassing, or other means) and set it's parent to be the Access MDI client area so that it will behave as if...
7
1593
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 is inherited from system.windows.forms.form) defined in my application. dim mfrmForm1 as Form1 Okay, now let's also say I put two menu items on my MDI form, and code them something like this
1
243
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 tab). When I get to the section of the code where I am setting the MDIParent property, the application just hangs: fDocument.MdiParent = this ; Is it possible to have an MDI form alongside other (non-MDI) windows
7
2789
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 of all the MDI children. I have tried playing with TopMost, send to back etc etc but no matter what i do I cant get the forms in front of the groupboxes. :( Any ideas?
0
8459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8367
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8889
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8790
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2781
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.