Export (0) Print
Expand All

How to: List Processes (Visual Basic) 

This example produces a list of running application processes. This information can be used when calling the AppActivate function.

Example

Dim pList() As System.Diagnostics.Process = _
    System.Diagnostics.Process.GetProcesses
For Each proc As System.Diagnostics.Process In pList
    MsgBox(proc.ProcessName)
Next

Compiling the Code

This example requires:

See Also

Community Additions

ADD
Show:
© 2015 Microsoft