avreca-mortua
Member
- Joined
- Sep 4, 2012
- Messages
- 6
- Programming Experience
- Beginner
Well I have a little app that gets some process names from a txt and put it on a listbox:
Dim a As String = My.Computer.FileSystem.ReadAllText("txtfile.txt")
Dim b As String() = a.Split(vbNewLine)
ListBox1.Items.AddRange(b)
everything is working fine with that but I want to do something like:
For Each Process As Process In ListBox1.Items
Process.Kill()
I have tried many codes but I can't please help me i'm a beginner and sorry for my english
Dim a As String = My.Computer.FileSystem.ReadAllText("txtfile.txt")
Dim b As String() = a.Split(vbNewLine)
ListBox1.Items.AddRange(b)
everything is working fine with that but I want to do something like:
For Each Process As Process In ListBox1.Items
Process.Kill()
I have tried many codes but I can't please help me i'm a beginner and sorry for my english