Home All Groups Group Topic Archive Search About

Get processes list problem (windows 2000)

Author
14 Apr 2005 8:22 PM
Eran AMiel
Hi
I am trying to get the processes list from using the code attached.
In win xp it works great but in win 2000 i get only one process the idle
Any Ideas ?
The Code :

Dim Vec As System.Diagnostics.Process()
Dim V As Object = Diagnostics.Process.GetProcesses.GetEnumerator

            Vec = Diagnostics.Process.GetProcesses
            For Each V In Diagnostics.Process.GetProcesses
                ListBox1.Items.Add(CType(V, Diagnostics.Process).ProcessName)
            Next
--
Thank For The Help
Eran

Author
14 Apr 2005 11:16 PM
Herfried K. Wagner [MVP]
"Eran AMiel" <EranAM***@discussions.microsoft.com> schrieb:
> [Double post]

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>