Private Void KillProcess (String ProcessName)
{
System.diagnostics.Process MyProc = New System.Diagnostics.Process ();
// Get all open processes
Try {
Foreach (Process thisproc in process.getprocessessname)
{
IF (! thisproc.closemainwindow ())
{
Thisproc.kill ();
}
}
Catch (Exception EXC)
{
Msg.Text = "Kill" ProcessName "Failed!";
}
}