Solved

List all Windows Applications Currently Open with .NET

Posted on 2004-10-27
397 Views
Last Modified: 2013-11-25
To: All

I need help creating a Sub that will list all the Windows Applications Currently Open.

I need the solution in Visual Basic .NET

I would like to create an output similar to the task manager.

Thanks for your time inadvance,
0
Question by:vaultworld
    2 Comments
     
    LVL 48

    Expert Comment

    by:Mikal613
    This code assume that you've used the following Imports
    ' Imports System.Diagnostics.

    ' Start with an empty ListBox.
    lstProcesses.Items.Clear()
    ' Display ProcessName property in the list area.
    lstProcesses.DisplayMember = "ProcessName"

    ' Load info on all running processes in the ListBox control.
    Dim p As Process
    For Each p In Process.GetProcesses
        lstProcesses.Items.Add(p)
    Next
    0
     
    LVL 48

    Accepted Solution

    by:
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    911 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now