ArrayList programlist = new ArrayList(); Process[] procList = Process.GetProcesses(); for (int i = 0; i < procList.Length; i++) { if (procList[i].MainWindowHandle != IntPtr.Zero) { programlist.Add(procList[i].ProcessName + "\t" + procList[i].MainWindowTitle); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)