By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

if A kills B then will B run MyBase.Closing

P: n/a

I have an application that I wish to update upon login via login script but
since the application is in the start-up menu, I cannot override the exe,
so, I wrote a function that iterates through all the instances of this
application and kills the one instance that is not itself and then shuts
itself down.

The idea is that in a batch file , I could run <applicationname> shutdown
which would create a new instance of the application but detect the other
instance that was activated in the start-up menu and "shut it down"

Question 1: when I do: process.kill() the first instance, will the first
instance ever get to the Mybase.closing handle so that I can close and
dispose all objects appropriately.

Question 2: should I do some form of remoting instead ?

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

Every inherited class has a mybase and when it is by instance a form a

You need to have the mybase.close from your application starting method to
close an application.

I hope this helps?

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.