473,397 Members | 1,974 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,397 software developers and data experts.

Determining the Parent orm is closing

HI..
I am having problem ot determine that a parent form is closing or not in my
VB.Net code

Any help
Sumit
Nov 21 '05 #1
3 1328
Hi Sumit,

Therefore is the form event
closing

I hope this helps?

Cor

"Sumit" <we********@sify.com>.
HI..
I am having problem ot determine that a parent form is closing or not in my VB.Net code

Any help
Sumit

Nov 21 '05 #2
Hi.. The Closing is there in the Parent and child form both.
Also, How can i determine that the call is made by the Parent MDI form and
not by any other form....????

:(
Sumit

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:#p**************@TK2MSFTNGP09.phx.gbl...
Hi Sumit,

Therefore is the form event
closing

I hope this helps?

Cor

"Sumit" <we********@sify.com>.
HI..
I am having problem ot determine that a parent form is closing or not in

my
VB.Net code

Any help
Sumit


Nov 21 '05 #3
Sumit,
In the child form, handle the Parent's Closing event. In addition to
possibly handling the child's Closing event.

You could use either AddHandler or WithEvents to setup the event handler for
the Parent's Closing event.

Hope this helps
Jay

"Sumit" <we********@sify.com> wrote in message
news:e0**************@TK2MSFTNGP15.phx.gbl...
Hi.. The Closing is there in the Parent and child form both.
Also, How can i determine that the call is made by the Parent MDI form and
not by any other form....????

:(
Sumit

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:#p**************@TK2MSFTNGP09.phx.gbl...
Hi Sumit,

Therefore is the form event
closing

I hope this helps?

Cor

"Sumit" <we********@sify.com>.
> HI..
> I am having problem ot determine that a parent form is closing or not
> in

my
> VB.Net code
>
> Any help
> Sumit
>
>



Nov 21 '05 #4

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

Similar topics

1
by: Hari Prasad | last post by:
I wrote an application where I am trying to kill a parent frame with out killing the child one. I have created a frame (F1) and if I click a button on F1 I am getting a new frame (F2). Now, if...
5
by: Dayne | last post by:
Can a Parent thread catch a event send by a child thread? Dayne
0
by: Kathy D | last post by:
I have created an mdi parent form with four children. I want to disable closing the four children but allow closing the parent form. I created a FormClosing event on each form. That event tests...
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: javanet | last post by:
Hi all, 1) i opened a parent window. 2) then i opend a child window thruogh this parent window. Now i want to close child window before closing the parend window means my clients can not be...
3
by: Darin | last post by:
I have a problem I just can't figure out. I have a form with a subform, and the recordsource of the subform has criteria based on some unbound fields in the parent form so that data in the parent...
3
by: Gordon | last post by:
I am currently working on some code for my CMS that creates a site folder, then creates all the necessary child folders inside it. The method that creates folders needs to insert into 2 tables so...
3
by: =?Utf-8?B?RGF2ZVA=?= | last post by:
I've got a situation in a VB 2003 Windows application with an MDI form and a child form. In certain situations, when the child is closed by the user, I also want to close the MDI parent. Is there...
3
by: gsuns82 | last post by:
Hi all, I am using modal window for some update purpose, the issue i am facing is,i am not able to refresh parent after closing modal window. The code i used: ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.