if A kills B then will B run MyBase.Closing

S

Support

Hello:

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 ?

Thanks
Terry
 
C

Cor Ligthert

Support,

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

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

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top