How To Make A Simple Task Manager In Visual Basic 2010 (Works in visual basic 2008)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,952
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 24, 2009

Visual Basic.NET - Simple Task Manager. Just a simple tutorial on how to make a program that shows all processes and allows you to end then. Thanks to AeonHack for help.

Codes:
Form1_Load
Dim Process As New Process()
Dim Count As Integer = 0
ListView1.Items.Clear()
For Each Process In Process.GetProcesses(My.Computer.Name)
On Error Resume Next
ListView1.Items.Add(Process.ProcessName)
ListView1.Items(Count).SubItems.Add(FormatNumber(Math.Round(Process.PrivateMemor­ySize64 / 1024), 0))
ListView1.Items(Count).SubItems.Add(Process.Responding)
ListView1.Items(Count).SubItems.Add(Process.StartTime.ToString.Trim)
ListView1.Items(Count).SubItems.Add(Process.Id)
Count += 1
Next
ToolStripStatusLabel1.Text = "Processes: " & ListView1.Items.Count

End Process:
For Each Process As ListViewItem In ListView1.SelectedItems
System.Diagnostics.Process.GetProcessById(Process.SubItems(4).Text).Kill()
Next
Form1_Load(Nothing, Nothing)


Timer1_Tick
Form1_Load(Nothing, Nothing)

Link to this comment:

Share to:
see all

All Comments (100)

Sign In or Sign Up now to post a comment!
  • Ty God for the Mute

  • turtle song..

  • moi j'y arrive pas

    Erreur 1 'Form1_Load' n'est pas déclaré. Il peut être inaccessible en raison de son niveau de protection.

    I can not do it myself

    Error 1 'Form1_Load' is not declared. It may be inaccessible due to its protection level.

  • What do you use to record your video's?

  • @SuperSoftware1234 The code tells you Process.PrivateMemor­-ySize64 if you straight copy/paste from YouTube, you have to delete the "-"

    ~ Surfshark Software Education

  • Process.PrivateMemor­ySize64 <<< The code that is giving me some serious issues, someone please help.

  • @sam20237 Timers are bad use threads and do & loop

  • The Process.PrivateMemor­ is because a pain in the ass to the error.

  • i dunno why i cannot see the memory...

  • just make the timer interval: 1000 or more... i hope

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more