Results 1 to 3 of 3
  1. #1
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy

    [TUT] Get running processes and kill them ~~

    Welcome!

    Screen:

    You will need:
    1 combo box!
    2 buttons!
    a Brain

    ------------
    Name button1 = Kill Process

    Name button2 = Update List


    ---------

    Add this code to imports,
    Code:
    Imports System.Diagnostics
    ---------


    Add this code to form load!

    Code:
      Private S ub  Form1_Load(B yVal sende r As System.Object, ByVal e As System.EventArgs) Handles   MyBase.Load
           
    
            Dim proc As Process
    
            ListBox1.Items.Clear()
    
            For Each proc In Process.GetProcesses
                ListBox1.Items.Add(proc.ProcessName)
            Next
        End Sub
    This will add all processes to combo box!

    ----------

    Add this code to button1

    Code:
        Priva Sub Button1_Click(ByVal sender As S ystem.Obje ct, ByVal  e As System.Eve ntArgs) Handles  Butto1.Click
            Try
    
                If ListBox1.SelectedItems.Count <= 0 Then
                    MessageBox.Show("Click on a process name to select it.", "No ProcessSelected(")
                    Return
                End If
                Dim p As System.Diagnostics.Process
                For Each p In System.Diagnostics.Process.GetProcesses()
                    Dim arr() As String = _
                  ListBox1.SelectedItem.ToString().Split("-")
                    Dim sProcess As String = arr(0).Trim()
                    If p.ProcessName = sProcess Then
                        p.Kill()
                        MsgBox("Process Killed")
                        Dim proc As Process
    
                        ListBox1.Items.Clear()
    
                        For Each proc In Process.GetProcesses
                            ListBox1.Items.Add(proc.ProcessName)
                        Next
                    End If
    
                Next
                ListBox1.Update()
            Catch ex As Exception
    
            End Try
    
        End Sub
        End Sub
    Kill selected process!

    -------------------
    Add this code to button2

    Code:
      Dim proc As Process
            ListBox1.Items.Clear()
            For Each proc In Process.GetProcesses
                ListBox1.Items.Add(proc.ProcessName)
    
            Next
            MsgBox("Processes Updated", MsgBoxStyle.Exclamation)
    Update processes!

    ---------

    Full code(Don´t copy and paste, will not work MAOAHAHAHAHA!!)

    Code:
    Imports System.Diagnostics
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
           
    
            Dim proc As Process
    
            ListBox1.Items.Clear()
    
            For Each proc In Process.GetProcesses
                ListBox1.Items.Add(proc.ProcessName)
            Next
        End Sub
    
        Private Sub ListBox1SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Try
    
                If ListBox1.SelectedItems.Count <= 0 Then
                    MessageBox.Show("Click on a process name to select it.", "No ProcessSelected(")
                    Return
                End If
                Dim p As System.Diagnostics.Process
                For Each p In System.Diagnostics.Process.GetProcesses()
                    Dim arr() As String = _
                  ListBox1.SelectedItem.ToString().Split("-")
                    Dim sProcess As String = arr(0).Trim()
                    If p.ProcessName = sProcess Then
                        p.Kill()
                        MsgBox("Process Killed")
                        Dim proc As Process
    
                        ListBox1.Items.Clear()
    
                        For Each proc In Process.GetProcesses
                            ListBox1.Items.Add(proc.ProcessName)
                        Next
                    End If
    
                Next
                ListBox1.Update()
            Catch ex As Exception
    
            End Try
    
        End Sub
    
        Private Button2_Click(BVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim proc As Process
            ListBox1.Items.Clear()
            For Each proc In Process.GetProcesses
                ListBox1.Items.Add(proc.ProcessName)
    
            Next
            MsgBox("Processes Updated", MsgBoxStyle.Exclamation)
        End Sub
    
        Private Sub Button3Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    
        End Sub
    End Class
    -Rest in peace leechers-

    Your PM box is 100% full.

  2. The Following User Says Thank You to Zoom For This Useful Post:

    Matrix10 (03-13-2010)

  3. #2
    stevethehacker's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    USA bitch
    Posts
    416
    Reputation
    14
    Thanks
    51
    My Mood
    Bored
    you use rocketdock?

  4. #3
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by stevethehacker View Post
    you use rocketdock?
    Yepp...(too short)
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [TUT]How to get certain chams and neverborns speed hack working
    By Bargin in forum Combat Arms Hacks & Cheats
    Replies: 130
    Last Post: 08-29-2009, 06:00 PM
  2. Replies: 5
    Last Post: 04-18-2009, 10:16 PM
  3. How to get hacks up and running
    By AceWontFold in forum Combat Arms Hacks & Cheats
    Replies: 17
    Last Post: 03-15-2009, 06:09 PM
  4. Getting the path of a running process?
    By *Marneus901* in forum C++/C Programming
    Replies: 0
    Last Post: 12-08-2008, 01:51 PM
  5. Tut Getting vb and learning the basics
    By nlowner in forum Visual Basic Programming
    Replies: 3
    Last Post: 08-03-2007, 04:05 PM

Tags for this Thread