I need some help, Within a program I am creating! I have a simple task manager where i can kill a single process! However, i need it so I can kill multiple processes, been stuck a few days and a little unsure how to kill multiple processes. Can anyone give me any advice?
By multiple processes, i dont mean just put more processes in along side firefox, i mean load multiple processes from a listview or sql?
here is my code so far. I was thinking maybe it was possible to save the processes to sql, and then load them in to where fire fox is?
foreach (System.Diagnostics.Process pr in System.Diagnostics.Process.GetProcesses())//GETS PROCESSES
{
if (pr.ProcessName == "firefox")//KILLS FIREFOX.....REMOVE FIREFOX.....CONNECT SAVED SQL PROCESSES IN HERE MAYBE??
{
pr.Kill(); //KILLS THE PROCESSES
}
}