Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. List of running applications in .Net

List of running applications in .Net

Scheduled Pinned Locked Moved Visual Basic
csharp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wayne Phipps
    wrote on last edited by
    #1

    I am using VB.Net and would like to obtain a list of all the running applications on a PC. I have looked at the Process Class but don't know if this is the right/best/simplest way of achieveing what I want. I only need to list items with user interfaces (windows) not services. Any ideas apreciated.

    W 1 Reply Last reply
    0
    • W Wayne Phipps

      I am using VB.Net and would like to obtain a list of all the running applications on a PC. I have looked at the Process Class but don't know if this is the right/best/simplest way of achieveing what I want. I only need to list items with user interfaces (windows) not services. Any ideas apreciated.

      W Offline
      W Offline
      Wayne Phipps
      wrote on last edited by
      #2

      Don't worry, someone posted the following code sample which solved my problem: Dim current As Process = Process.GetCurrentProcess() Dim processes As Process() = Process.GetProcesses Dim ThisProcess As Process For Each ThisProcess In processes '-- Ignore the current process If ThisProcess.Id <> current.Id Then '-- Only list processes that have a Main Window Title If ThisProcess.MainWindowTitle <> "" Then ListBox1.Items.Add(ThisProcess.ProcessName) End If End If Next

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups