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

    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,960
    Reputation
    353
    Thanks
    8,746
    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, 08:37 PM
  2. Getting a process handle in Kernel Mode
    By radnomguywfq3 in forum C++/C Programming
    Replies: 2
    Last Post: 08-10-2009, 01:03 PM
  3. [Request] Get CA process Handle
    By crazyfool in forum Programming Tutorial Requests
    Replies: 2
    Last Post: 05-30-2009, 06:38 AM
  4. Replies: 5
    Last Post: 04-18-2009, 11: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, 09:30 PM