I have populated A listbox with a list of processes.
After selecting i click a button to kill the selected processes.
>>Can anyone tell me how i can refresh the listbox.<<
I've tried simply by re-populating the listbox as i did above but the
highlighted selections still show and i end up with double the amount of
processes showing.
hope u can understand this!!!

thanks in advance

so far i have ....

Sub Window_Onload

document.body.style.cursor = "wait"

'Get processes
strComputer = "."
Set colProcesses = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\cimv2").ExecQuery("Select * from Win32_Process")

For Each objProcess in colProcesses

Return = objProcess.GetOwner(strNameOfUser)

If strNameOfUser = "Ben" then
Set objOption = Document.createElement("OPTION")
objOption.Text = objProcess.Name
objOption.Value = objProcess.Name
Processess.Add(objOption)

End If
Next

document.body.style.cursor = "default"
End Sub

*** Sent via Developersdex http://www.developersdex.com ***