private void KillProcess (string processName) {System.Diagnostics.Process myproc = new System.Diagnostics.Process (); // get all open processes try {foreach (Process thisproc in Process.GetProcessesByName (processName)) {if (thisproc! .Closemainwindow ()) {thisproc.kill ();}}} catch (exception EXC) {msg.text = "Kill" ProcessName "Failure!"