Get List of all running process name in system using c#

you can make use  of GetProcesses() function of System.Diagnostics.Process class to get List of processes that are currently running your computer system.


            foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses())

            {

                listbox1.Items.Add(p.ProcessName);

            }

 

i have written code which get list of all processes and add into the listbox1.