System.Diagnostics.Process[] NewProcess = System.Diagnostics.Process.GetProcessesByName("EOCNMS");
if (NewProcess.Length > 0)
{
this.label1.Text = NewProcess[0].Threads.Count.ToString();
this.label2.Text = NewProcess[0].WorkingSet.ToString();
this.label5.Text = NewProcess[0].VirtualMemorySize.ToString();
}