So here's Wat im trying to do
Ive got 2 List boxes 1 Shows Processes other one is for Storage
Anyway that's not important
Im trying to Kill all the Processes wat are stored in Listbox 2
I had to add .exe at List for Listbox 2
But still not working ???
The problem is its not removing the File names that are stored
ProgressBar1.Increment(1)
Process.EnterDebugMode()
If ProgressBar1.Value = ProgressBar1.Maximum Then
For Each proc In Form3.ListBox2.Items
Dim ppdd() As Process = System.Diagnostics.Process.GetProcessesByName(proc.ToString)
For Each p As Process In ppdd
p.EnterDebugMode()
p.Kill()
p.LeaveDebugMode()
Next
Next
Process.LeaveDebugMode()
Timer2.Stop()
MessageBox.Show("Removal was Succesfull", "Protocol Terminated", MessageBoxButtons.OK, MessageBoxIcon.Information)
ProgressBar1.Value = 0
Button4.Enabled = True
End If