943,545 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 4595
  • VB.NET RSS
Aug 25th, 2008
0

Process monitor

Expand Post »
Does any one know the code to retreve process info and put it in a box like task manager?
Similar Threads
Reputation Points: 6
Solved Threads: 2
Junior Poster
scrypt3r is offline Offline
114 posts
since Aug 2007
Aug 25th, 2008
2

Re: Process monitor

Try this :
vb Syntax (Toggle Plain Text)
  1. Private Sub ProcessView()
  2. Dim Prc As Process()
  3. Dim x As Integer
  4.  
  5. Prc = Process.GetProcesses
  6.  
  7. For x = 0 To UBound(Prc)
  8. ListBox1.Items.Add(Prc.GetValue(x))
  9. Next
  10. End Sub
Last edited by Jx_Man; Aug 25th, 2008 at 10:55 am.
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,135 posts
since Nov 2007
Aug 25th, 2008
0

Re: Process monitor

thanks
Reputation Points: 6
Solved Threads: 2
Junior Poster
scrypt3r is offline Offline
114 posts
since Aug 2007
Aug 25th, 2008
0

Re: Process monitor

You're Welcome
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,135 posts
since Nov 2007
Aug 26th, 2008
0

Re: Process monitor

hi.. thanks.
i never know this.
simple but great
Reputation Points: 37
Solved Threads: 7
Junior Poster in Training
Estella is offline Offline
99 posts
since Jan 2008
Aug 26th, 2008
0

Re: Process monitor

Ah, your code simply puts a blank entry into the box, does anyone know how to retreve the processes name/info ?
Reputation Points: 6
Solved Threads: 2
Junior Poster
scrypt3r is offline Offline
114 posts
since Aug 2007
Aug 26th, 2008
0

Re: Process monitor

ListBox1.Items.Add(Prc(x).ProcessName)
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Aug 26th, 2008
2

Re: Process monitor

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

thanks iamthwee for the correction.
Last edited by Jx_Man; Aug 26th, 2008 at 7:23 am.
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,135 posts
since Nov 2007
Aug 27th, 2008
0

Re: Process monitor

Ah thanks
Reputation Points: 6
Solved Threads: 2
Junior Poster
scrypt3r is offline Offline
114 posts
since Aug 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Save picture in access
Next Thread in VB.NET Forum Timeline: Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC