How to close application/program with c#?
Printable View
How to close application/program with c#?
anyone? :confused:
What kind of app?
any kinds!
hmm maybe set a flag in the Main() method and when the flag is false just make a return;
You mean to detect another app and kill it?
Or do you simply want to close your app?
other applications.
like to control the whole windows environment with c#---close any kinds of applications, call explorer...etc
I don't think this is possible with only the framework.
Anyway, look at everything concerning the System.Diagnostics.Process class, it might be interesting.