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

C#

 
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 
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 
Use Process.GetProcessByName().

Or If you want to play it more safely, use Process.GetProcessById() method. To obtain the PIDs for the processes you want to end, get a list of all the processes running on your system using Process.GetProcesses(). Then manually traverse the list and find the PID of the processes you want to end, and then end them from there.

[Edit]Have a look at the process class and find out what it can do.[^][/Edit]

BTW, please answer this time, what are you building, and do you work for some company?

Excuse me for buttin' in, but I'm interrupt driven.

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 
QuestionHow to run appllication by checking MAC address of a system Pin
sandhya1428-Jan-09 19:27
sandhya1428-Jan-09 19:27 
AnswerRe: How to run appllication by checking MAC address of a system Pin
Spunky Coder28-Jan-09 20:02
Spunky Coder28-Jan-09 20:02 

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.