getting a list of running applications

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

how can I get a list of applications running on the system (the list
that appears in the applications tab of the task manager) and set one of
them active? I am trying to have my app find other running apps and
switch focus to one of them
thanks
kevin
 
Hi,

For Each p As Process In Process.GetProcesses

Trace.WriteLine(p.ProcessName)

Next



Ken

-----------------------

how can I get a list of applications running on the system (the list
that appears in the applications tab of the task manager) and set one of
them active? I am trying to have my app find other running apps and
switch focus to one of them
thanks
kevin
 
Ken said:
Hi,

For Each p As Process In Process.GetProcesses

Trace.WriteLine(p.ProcessName)

Next



Ken

-----------------------

how can I get a list of applications running on the system (the list
that appears in the applications tab of the task manager) and set one of
them active? I am trying to have my app find other running apps and
switch focus to one of them
thanks
kevin

thanks Ken,
that close, but I am looking for applications not processes
kevin
 
Kevin said:
how can I get a list of applications running on the system (the list that
appears in the applications tab of the task manager) and set one of them
active? I am trying to have my app find other running apps and switch
focus to one of them

'System.Diagnostics.Process.GetProcesses' + 'AppActivate'/p/invoke
'SetForegroundWindow'.
 
Hi,

A process is a running application

Ken
-------------------------------
Ken said:
Hi,

For Each p As Process In Process.GetProcesses

Trace.WriteLine(p.ProcessName)

Next



Ken

-----------------------

how can I get a list of applications running on the system (the list
that appears in the applications tab of the task manager) and set one of
them active? I am trying to have my app find other running apps and
switch focus to one of them
thanks
kevin

thanks Ken,
that close, but I am looking for applications not processes
kevin
 
do you mean you want to differentiate between a service and a program the
user ran themselves?
 
Back
Top