HI..
I am having problem ot determine that a parent form is closing or not in my
VB.Net code
Any help
Sumit 3 1356
Hi Sumit,
Therefore is the form event
closing
I hope this helps?
Cor
"Sumit" <we********@sif y.com>. HI.. I am having problem ot determine that a parent form is closing or not in
my VB.Net code
Any help Sumit
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**********@p lanet.nl> wrote in message
news:#p******** ******@TK2MSFTN GP09.phx.gbl... Hi Sumit,
Therefore is the form event closing
I hope this helps?
Cor
"Sumit" <we********@sif y.com>. HI.. I am having problem ot determine that a parent form is closing or not in my VB.Net code
Any help Sumit
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********@sif y.com> wrote in message
news:e0******** ******@TK2MSFTN GP15.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**********@p lanet.nl> wrote in message news:#p******** ******@TK2MSFTN GP09.phx.gbl... Hi Sumit,
Therefore is the form event closing
I hope this helps?
Cor
"Sumit" <we********@sif y.com>. > HI.. > I am having problem ot determine that a parent form is closing or not > in my > VB.Net code > > Any help > Sumit > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 I click a button on F2, I am getting
updated F1. Its fine. But if I close F2, both F2 and F1 are closing. I
am trying to close F2 with out closing F1, but getting mistake.
Pls suggest me how I can do this.
|
by: Dayne |
last post by:
Can a Parent thread catch a event send by a child thread?
Dayne
|
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 to see who the sender is.
If it is the appropriate child form the close is disabled and a message box
shown.
The problem is on the FormClosing event for the parent. It goes immediately
to the first child form and displays the message box, then...
|
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 application.
What should happen, is that the main MDI form should close, taking the child
forms with it. There is code to loop through the child forms, remove the
controls on each of them, and then close the form, but this code should
execute only...
|
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 close the parent window without closing the child window.
please reply me.
if there is any solution for this....
| |
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 form
affects data in the subform. I've had this type of setup often, but
I've run across a couple forms where this has caused an "enter
parameter value" pop up for each reference to the parent control in
the query when the main form is closed. ...
|
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 it wraps
the operation in a transaction. (psuedocode below)
public function createItem ($parent)
{
$this -database -beginTransaction ();
$this -database -query ('INSERT INTO items (param1,
param2 ... ) values (val1, val2 ... )');
|
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 a way to close the MDI parent
with code in the child form?
In the MDI child form, I have tried:
me.MDIParent.Close
but that doesn't appear to work. Is that because of object references in
|
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:
------------------------
For opening modal window from parent window:
showModalDialog("mypage.jsp",window,"dialogHeight:480px;dialogWidth:700px;");
|
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,...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |