Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

can anybody guide me how to develop an application in which whenever we click the button, we get the message that display the name of running applications on windows.


for example- i have active running microsoft word document, visual studio, gtalk in my windows then the message box shows that these applications are running.


Thanks
Posted

Google is you best friend: see, for instance How to enumerate currently executing processes in VB.NET[^].
:)
 
Share this answer
 
Comments
Manfred Rudolf Bihy 25-Oct-11 8:54am    
Come on you can't be serious: google as ones best friend? ;)

Have a five!
C#
Process[] p= System.Diagnostics.Process.GetProcesses();
           for (int i = 0; i < p.Length; i++)
           {
               Console.WriteLine(p[i].ProcessName);
           }


Np
 
Share this answer
 
Comments
Manfred Rudolf Bihy 25-Oct-11 8:55am    
Good answer! 5+
Mantu Singh 25-Oct-11 9:34am    
Nice Answer...
Being lazy I would use..
foreach(Process pcs in p)
{
MessageBox.Show(""+p.Name);
}
SercanOzdemir 25-Oct-11 12:37pm    
You can use it as you wish
The following code shows all the running processes in the Computer
VB
'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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900