Cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to close a running application from code?

Experimenter
Experimenter

I'm trying to automate an application update process with users running a compiled version of the application. I have code to validate the appliction version number (a property that I set) against the current version number stored in a database. It runs on the RsEngineer_AfterLoad event. I'd like to:

- display a message to the user that their code is obsolete

- copy the new DLL from a network share down to the client machine

- force the running application to close

I tried Application.Exit() but it had no effect.

 

Thanks for any suggestions.