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 "failed!"