Click here to Skip to main content
15,914,608 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProblem With ImageList control Pin
Anindya Chatterjee7-Nov-05 0:27
Anindya Chatterjee7-Nov-05 0:27 
Questionclient/server communication Pin
sahil puri6-Nov-05 22:21
sahil puri6-Nov-05 22:21 
QuestionHelpNameSpace linked to host machine Pin
nashdb6-Nov-05 16:36
nashdb6-Nov-05 16:36 
AnswerRe: HelpNameSpace linked to host machine Pin
nikneem20057-Nov-05 2:34
nikneem20057-Nov-05 2:34 
GeneralRe: HelpNameSpace linked to host machine Pin
nashdb7-Nov-05 4:27
nashdb7-Nov-05 4:27 
GeneralRe: HelpNameSpace linked to host machine Pin
nashdb7-Nov-05 7:36
nashdb7-Nov-05 7:36 
QuestionHelp Needed = Listbox populated from .txt file - process each item in list through loop Pin
r00tb0x6-Nov-05 14:50
r00tb0x6-Nov-05 14:50 
AnswerRe: Help Needed = Listbox populated from .txt file - process each item in list through loop Pin
Christian Graus6-Nov-05 15:06
protectorChristian Graus6-Nov-05 15:06 
r00tb0x wrote:
lined = (ListBox2.Text)
proc = Diagnostics.Process.GetProcesses
For i = 0 To proc.Length - 1
If proc(i).ProcessName = lined Then
Try
proc(i).Kill()
prokill = True
Catch ex As Exception
Exit Sub
End Try
End If


You need to replace the code that takes the text from the listbox, and replace it with code which iterates through the Items property, using foreach. Then you can process each one. I'd create a KillProcess method, and call it from the loop, just to factor out the code a little.


Christian Graus - Microsoft MVP - C++
GeneralRe: Help Needed = Listbox populated from .txt file - process each item in list through loop Pin
r00tb0x6-Nov-05 15:38
r00tb0x6-Nov-05 15:38 
GeneralRe: Help Needed = Listbox populated from .txt file - process each item in list through loop Pin
Christian Graus6-Nov-05 15:52
protectorChristian Graus6-Nov-05 15:52 
GeneralRe: Help Needed = Listbox populated from .txt file - process each item in list through loop Pin
r00tb0x6-Nov-05 16:00
r00tb0x6-Nov-05 16:00 
GeneralRe: Help Needed = Listbox populated from .txt file - process each item in list through loop Pin
Christian Graus6-Nov-05 16:01
protectorChristian Graus6-Nov-05 16:01 
GeneralRe: Help Needed = Listbox populated from .txt file - process each item in list through loop Pin
r00tb0x6-Nov-05 16:27
r00tb0x6-Nov-05 16:27 
QuestionA component that does a databindable print document type thing? Pin
Duncan Edwards Jones6-Nov-05 11:08
professionalDuncan Edwards Jones6-Nov-05 11:08 
QuestionComboBox onchange Pin
TigerNige6-Nov-05 10:09
TigerNige6-Nov-05 10:09 
AnswerRe: ComboBox onchange Pin
Nibu babu thomas6-Nov-05 21:12
Nibu babu thomas6-Nov-05 21:12 
GeneralRe: ComboBox onchange Pin
TigerNige6-Nov-05 23:56
TigerNige6-Nov-05 23:56 
GeneralRe: ComboBox onchange Pin
Nibu babu thomas7-Nov-05 0:13
Nibu babu thomas7-Nov-05 0:13 
GeneralRe: ComboBox onchange Pin
TigerNige7-Nov-05 11:38
TigerNige7-Nov-05 11:38 
QuestionFind Method - Finding the closest record match Pin
dptalt6-Nov-05 4:56
dptalt6-Nov-05 4:56 
AnswerRe: Find Method - Finding the closest record match Pin
Christian Graus6-Nov-05 12:59
protectorChristian Graus6-Nov-05 12:59 
GeneralRe: Find Method - Finding the closest record match Pin
dptalt7-Nov-05 14:48
dptalt7-Nov-05 14:48 
GeneralRe: Find Method - Finding the closest record match Pin
Christian Graus7-Nov-05 15:04
protectorChristian Graus7-Nov-05 15:04 
GeneralRe: Find Method - Finding the closest record match Pin
dptalt8-Nov-05 15:36
dptalt8-Nov-05 15:36 
QuestionRunning a thread on one form from another form Pin
Rizwan Bashir5-Nov-05 23:28
Rizwan Bashir5-Nov-05 23:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.