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

Closing child forms in MDI parent one?

al
Greetings,

If I instansiate child forms in MDI parent, what is the way to close
them. I can't find an event related to child to do such task. I want
to close 3 child forms, all in the same parent.

MTIA,
Grawsha
Nov 20 '05 #1
8 4150
"al" <gr*********@yahoo.com> schrieb

If I instansiate child forms in MDI parent, what is the way to
close them. I can't find an event related to child to do such task.
I want to close 3 child forms, all in the same parent.


The MdiChildren property of the parent returns a list of all open Mdi child
windows. Each child has also a Close event you can handle.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* gr*********@yahoo.com (al) scripsit:
If I instansiate child forms in MDI parent, what is the way to close
them. I can't find an event related to child to do such task. I want
to close 3 child forms, all in the same parent.


\\\
Me.MdiChildren(2).Close()
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
al
hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<#J**************@TK2MSFTNGP11.phx.gbl>...
* gr*********@yahoo.com (al) scripsit:
If I instansiate child forms in MDI parent, what is the way to close
them. I can't find an event related to child to do such task. I want
to close 3 child forms, all in the same parent.
\\\
Me.MdiChildren(2).Close()
///


This is not exactly what I want.It is what event/s I should use in the
MDIparent or any other to triger the closing of the child forms. That
is,

'What event I should use to trigger this event? Me.MdiChildren(2).Close()

Nov 20 '05 #4
al
hi***************@gmx.at (Herfried K. Wagner [MVP]) wrote in message news:<#J**************@TK2MSFTNGP11.phx.gbl>...
* gr*********@yahoo.com (al) scripsit:
If I instansiate child forms in MDI parent, what is the way to close
them. I can't find an event related to child to do such task. I want
to close 3 child forms, all in the same parent.
\\\
Me.MdiChildren(2).Close()
///


This is not exactly what I want.It is what event/s I should use in the
MDIparent or any other to triger the closing of the child forms. That
is,

'What event I should use to trigger this event? Me.MdiChildren(2).Close()

Nov 20 '05 #5
"al" <gr*********@yahoo.com> schrieb
This is not exactly what I want.It is what event/s I should use in
the MDIparent or any other to triger the closing of the child forms.
That is,

'What event I should use to trigger this event?
Me.MdiChildren(2).Close()

"Each child has also a Close event you can handle."
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
"al" <gr*********@yahoo.com> schrieb
This is not exactly what I want.It is what event/s I should use in
the MDIparent or any other to triger the closing of the child forms.
That is,

'What event I should use to trigger this event?
Me.MdiChildren(2).Close()

"Each child has also a Close event you can handle."
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
* gr*********@yahoo.com (al) scripsit:
If I instansiate child forms in MDI parent, what is the way to close
them. I can't find an event related to child to do such task. I want
to close 3 child forms, all in the same parent.


\\\
Me.MdiChildren(2).Close()
///


This is not exactly what I want.It is what event/s I should use in the
MDIparent or any other to triger the closing of the child forms. That
is,

'What event I should use to trigger this event?
Me.MdiChildren(2).Close()


That's not an event, that's a method call. Call it where you want to
close the form, for example in a button's 'Click' event handler.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
"Armin Zingler" <az*******@freenet.de> schrieb
"al" <gr*********@yahoo.com> schrieb
This is not exactly what I want.It is what event/s I should use
in the MDIparent or any other to triger the closing of the child
forms. That is,

'What event I should use to trigger this event?
Me.MdiChildren(2).Close()

"Each child has also a Close event you can handle."


Excuse me please, it is the Closed event, not the Close event. Close is a
method.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #9

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

Similar topics

5
by: Ron L | last post by:
I have an MDI application with a number of child windows. In each child window I am catching the Closing event and having the child window decide if it should set cancel to true. The intent here...
1
by: Chris Bruce | last post by:
In my application I need a way to distiguish between the following events: 1. When a user closes an MDI child window. 2. When the user closes the MDI parent window which subsequently closes the...
6
by: Barry Gast | last post by:
Hi. I have an MDI Parent form with multiple child windows. When I close the parent form, the Closing events of the children forms are not executing. Do I have to close all the child forms in the...
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...
3
by: Charles Law | last post by:
Under what circumstances would e.Cancel be set to True on entry to the Closing event of an MDI child form? I have found that this is why my application won't close properly. I can explicitly set...
3
by: Sumit | last post by:
HI.. I am having problem ot determine that a parent form is closing or not in my VB.Net code Any help Sumit
3
by: Oenone | last post by:
I'm writing an application with various MDI child forms. In the Closing event of many of the forms, I have code that asks the user whether he is sure he wants to close the form, because it...
0
by: vvenk | last post by:
Hello: I have an MDI application. The application has a MDI Parent and several MDI children forms. While the MDI parent makes sure that all child forms are closed before the application shuts...
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.