Process[] p= System.Diagnostics.Process.GetProcesses(); for (int i = 0; i < p.Length; i++) { Console.WriteLine(p[i].ProcessName); }
'Create New Object of System.Diagnostic.Process Dim Processes as System.Diagnostic.Process() 'Get the Collection of all Available Processes Processes=System.Diagnostic.Process.GetProcesses For Each Proc In Processes 'It Shows the all the available Processes Name through MessageBox MessageBox.Show(Proc.Name) Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)