Does any one know the code to retreve process info and put it in a box like task manager?

Recommended Answers

All 8 Replies

Try this :

Private Sub ProcessView()
        Dim Prc As Process()
        Dim x As Integer

        Prc = Process.GetProcesses

        For x = 0 To UBound(Prc)
            ListBox1.Items.Add(Prc.GetValue(x))
        Next
End Sub
commented: Great code +1
commented: Good :P +1

thanks

You're Welcome :)

hi.. thanks.
i never know this.
simple but great :)

Ah, your code simply puts a blank entry into the box, does anyone know how to retreve the processes name/info ?

Member Avatar for iamthwee

ListBox1.Items.Add(Prc(x).ProcessName)

>> ListBox1.Items.Add(Prc(x).ProcessName)

thanks iamthwee for the correction.

commented: Great code :) +1

Ah thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.