您好
請參考
Process.GetCurrentProcess 方法 : 获取新的 Process 组件并将其与当前活动的进程关联。
http://msdn.microsoft.com/zh-cn/library/system.diagnostics.process.getcurrentprocess(v=VS.80).aspx
' Start with an empty ListBox.
lstProcessList.Items.Clear()
' Display ProcessName property in the list area.
lstProcessList.DisplayMember =
"ProcessName"
' Load info on all running processes in the ListBox control.
Dim p
As Process
For
Each p In Process.GetProcesses
lstProcessList.Items.Add(p)
Next
歡迎參觀我的Blog
.NET菜鳥自救會