Results 1 to 9 of 9
  1. #1
    Sasuke Uchiha!'s Avatar
    Join Date
    Oct 2014
    Gender
    male
    Posts
    677
    Reputation
    46
    Thanks
    1,523
    My Mood
    Relaxed

    Imports System.Diagnostics | GetProcesses

    Short and Simple.

    I have The "Imports System.Diagnostics" Namespace but yet Process.GetProcesses doesn't work

    Anyone Help me please?

    Code:
    Imports System.Diagnostics
    Public Class Process
    
    
    
        Private Sub NsButton2_Click(sender As Object, e As EventArgs) Handles NsButton2.Click
            For Each OneProcess As Process In Process.GetProcesses
                ListBox1.Items.Add(OneProcess.ProcessName)
            Next
        End Sub
    End Class
    Last edited by Sasuke Uchiha!; 01-11-2015 at 12:56 PM.
    "For me, revenge is everything, and failure is nothing."
    -Sasuke Uchiha

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Not sure if the brackets are missing or if it's ok in vb.net lol
    Last edited by Biesi; 01-11-2015 at 01:33 PM.

  3. #3
    Raydenman's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Italy
    Posts
    261
    Reputation
    10
    Thanks
    810
    My Mood
    Amused
    Use the cycle deltan to get all the processes...

    First of all, clear the listbox if the user want to get again the processes:
    Code:
            ListBox1.Items.Clear()
    get visible and invisible processes:
    Code:
            For Each all As Process In Process.GetProcesses
                If all.MainWindowTitle = String.Empty = False Then
                    ListBox1.Items.Add(all.ProcessName & " - Visible") '< delete all this to get just the invisible processes
                Else
                    ListBox1.Items.Add(all.ProcessName & " - Not visible") '< delete all this to get just the visible processes
                End If
            Next
    get all the processes:
    Code:
            For Each all As Process In Process.GetProcesses
                    ListBox1.Items.Add(all.ProcessName)
            Next
    you don't need to import System.Diagnostics namespaces
    Last edited by Raydenman; 01-11-2015 at 01:54 PM.

  4. #4
    Sasuke Uchiha!'s Avatar
    Join Date
    Oct 2014
    Gender
    male
    Posts
    677
    Reputation
    46
    Thanks
    1,523
    My Mood
    Relaxed
    Quote Originally Posted by Raydenman View Post
    Use the cycle deltan to get all the processes...

    First of all, clear the listbox if the user want to get again the processes:
    Code:
            ListBox1.Items.Clear()
    get visible and invisible processes:
    Code:
            For Each all As Process In Process.GetProcesses
                If all.MainWindowTitle = String.Empty = False Then
                    ListBox1.Items.Add(all.ProcessName & " - Visible") '< delete all this to get just the invisible processes
                Else
                    ListBox1.Items.Add(all.ProcessName & " - Not visible") '< delete all this to get just the visible processes
                End If
            Next
    get all the processes:
    Code:
            For Each all As Process In Process.GetProcesses
                    ListBox1.Items.Add(all.ProcessName)
            Next
    you don't need to import System.Diagnostics namespaces
    Didn't work, ugh.
    "For me, revenge is everything, and failure is nothing."
    -Sasuke Uchiha

  5. #5
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    Imports System.Diagnostics
    Public Class Process
    ...
    End Class
    You're importing a "Process" class AND creating your own....it's not sure which Process class to look for the function in.
    Last edited by abuckau907; 01-11-2015 at 02:18 PM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  6. #6
    Raydenman's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Italy
    Posts
    261
    Reputation
    10
    Thanks
    810
    My Mood
    Amused
    Quote Originally Posted by TyrellWantsHacks View Post
    Didn't work, ugh.
    It must work. https://gyazo.com/e243aa204f1322bdccc8e311de788f7f
    I missed that... you need to replace "Process" w/ something else
    Last edited by Raydenman; 01-11-2015 at 02:18 PM.

  7. #7
    Sasuke Uchiha!'s Avatar
    Join Date
    Oct 2014
    Gender
    male
    Posts
    677
    Reputation
    46
    Thanks
    1,523
    My Mood
    Relaxed
    Quote Originally Posted by Raydenman View Post
    It must work. https://gyazo.com/e243aa204f1322bdccc8e311de788f7f
    I missed that... you need to replace "Process" w/ something else
    Add me on skype please. ******tyrellwilliams_34
    "For me, revenge is everything, and failure is nothing."
    -Sasuke Uchiha

  8. #8
    Sasuke Uchiha!'s Avatar
    Join Date
    Oct 2014
    Gender
    male
    Posts
    677
    Reputation
    46
    Thanks
    1,523
    My Mood
    Relaxed
    @Mayion Solved Prefix please
    "For me, revenge is everything, and failure is nothing."
    -Sasuke Uchiha

  9. #9
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    Solved, Closed.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  10. The Following User Says Thank You to Mayion For This Useful Post:

    Sasuke Uchiha! (01-13-2015)

Similar Threads

  1. Unpacked system.mrs
    By 1337Sasuke in forum Gunz Hacks
    Replies: 1
    Last Post: 03-22-2006, 02:05 AM
  2. EndLess' edited system.mrs
    By EndLess in forum Gunz Hacks
    Replies: 22
    Last Post: 02-22-2006, 09:22 AM
  3. [Request] System.mrs
    By Xgs in forum Gunz General
    Replies: 10
    Last Post: 02-21-2006, 12:11 PM
  4. System Hacker For Gunz
    By gameking85 in forum Gunz Hacks
    Replies: 11
    Last Post: 02-09-2006, 11:57 AM
  5. Jan 5th - An Important Date
    By Dave84311 in forum SCI-FI
    Replies: 14
    Last Post: 01-10-2006, 04:13 PM