VB.NET Get Process list and kill process
process, vb.net
Solution
the list + kill:
For Each p As Process In Process.GetProcesses
ListBox1.Items.Add(p.ProcessName.ToString)
If String.compare(p.ProcessName, "iexplore",true) = 0 Then
p.Kill()
End If
Next
use the `kill()` to kill process to open process:
Process.Start("pname.exe")
Problem
i want to insert all processes that running into listbox, and also how to "kill" process and start process? ``` for i = 0 to procCount ... next i ```