Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
AnswerRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 21:40
Ankit Rajpoot28-Jan-09 21:40 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 21:43
sandhya1428-Jan-09 21:43 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 21:58
sandhya1428-Jan-09 21:58 
GeneralRe: Close all application using c# Pin
SeMartens28-Jan-09 22:00
SeMartens28-Jan-09 22:00 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 22:26
Ankit Rajpoot28-Jan-09 22:26 
GeneralRe: Close all application using c# Pin
SeMartens28-Jan-09 22:30
SeMartens28-Jan-09 22:30 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 22:41
sandhya1428-Jan-09 22:41 
GeneralRe: Close all application using c# Pin
SeMartens28-Jan-09 22:53
SeMartens28-Jan-09 22:53 
Hi,

first you could use

System.Diagnostics.Process.GetProcesses();


to enumerate all running processes. But closing them could be difficult because you have to distinguish between system processes and application processes. A better way is to get all top-level applications (like the task-manager) and close them. Have a look at this link http://www.neowin.net/forum/lofiversion/index.php/t369213.html[^].

Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: Close all application using c# [modified] Pin
charles henington12-May-10 18:44
charles henington12-May-10 18:44 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 22:59
Ankit Rajpoot28-Jan-09 22:59 
AnswerRe: Close all application using c# Pin
SeMartens28-Jan-09 21:43
SeMartens28-Jan-09 21:43 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 22:17
sandhya1428-Jan-09 22:17 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 22:27
Ankit Rajpoot28-Jan-09 22:27 
GeneralRe: Close all application using c# Pin
sandhya1429-Jan-09 20:04
sandhya1429-Jan-09 20:04 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot29-Jan-09 21:01
Ankit Rajpoot29-Jan-09 21:01 
GeneralRe: Close all application using c# Pin
sandhya1429-Jan-09 21:12
sandhya1429-Jan-09 21:12 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot29-Jan-09 21:22
Ankit Rajpoot29-Jan-09 21:22 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot29-Jan-09 21:49
Ankit Rajpoot29-Jan-09 21:49 
GeneralRe: Close all application using c# Pin
sandhya1429-Jan-09 23:27
sandhya1429-Jan-09 23:27 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot30-Jan-09 2:14
Ankit Rajpoot30-Jan-09 2:14 
QuestionProblem with C# not with VB6 Application Pin
Sun Rays28-Jan-09 21:12
Sun Rays28-Jan-09 21:12 
AnswerRe: Problem with C# not with VB6 Application Pin
Ankit Rajpoot28-Jan-09 21:24
Ankit Rajpoot28-Jan-09 21:24 
GeneralRe: Problem with C# not with VB6 Application Pin
Sun Rays28-Jan-09 21:51
Sun Rays28-Jan-09 21:51 
Questionurl rewriting [modified] Pin
icanmakeiteasy28-Jan-09 20:19
icanmakeiteasy28-Jan-09 20:19 
AnswerRe: url rewriting Pin
Spunky Coder28-Jan-09 20:51
Spunky Coder28-Jan-09 20:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.