1 out of 5 rated this helpful - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.