Results 1 to 3 of 3
  1. #1
    Vicarious's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    R'lyeh
    Posts
    2,554
    Reputation
    619
    Thanks
    1,807

    Question Get a process from list

    I am pretty new to VB and currently learning.

    As a first project I started making my own DLL-injector and after reading through different tutorials and some hours of
    trial and error I now have a pretty simple injector.

    It seems to work just fine but I want to improve it a bit.
    The current way to get the target process is by simply typing the process name into a textbox.

    I would like to create a button that allows you to choose the target process out of a list of running processes.
    I can't find anything for this issue around the web so maybe someone here knows what to do...

    Any help? (keep in mind: I am a beginner)

    prev. Names: HΔSTUR ▬ Sound.

  2. #2
    IrieMonkeey's Avatar
    Join Date
    May 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    I used a combobox to display all of the running processes.
    This code should do the trick for you and populate the combobox with the running processes.

    Code:
    For Each p As Process In Process.GetProcesses
    
                If cmbProcess.Items.Contains(p.ProcessName) = False Then
                    cmbProcess.Items.Add(p.ProcessName.ToString)
                End If
    
            Next

  3. The Following User Says Thank You to IrieMonkeey For This Useful Post:

    Vicarious (09-11-2019)

  4. #3
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Process.GetProcesses() lists all processes

  5. The Following User Says Thank You to Biesi For This Useful Post:

    Vicarious (09-11-2019)

Similar Threads

  1. How to not get d/ced from chams.
    By bobalob in forum Combat Arms Discussions
    Replies: 18
    Last Post: 09-02-2009, 07:37 PM
  2. Getting a process handle in Kernel Mode
    By radnomguywfq3 in forum C++/C Programming
    Replies: 2
    Last Post: 08-10-2009, 12:03 PM
  3. [Request] Get CA process Handle
    By crazyfool in forum Programming Tutorial Requests
    Replies: 2
    Last Post: 05-30-2009, 05:38 AM
  4. Replies: 5
    Last Post: 04-18-2009, 10:16 PM
  5. Why did I Get a Virus From Daves Pub Hack
    By JessieHooker in forum Flaming & Rage
    Replies: 22
    Last Post: 12-30-2008, 08:30 PM