本文实例讲述了C#获取任务栏显示进程的方法。分享给大家供大家参考。具体实现方法如下: private static void getWindowsInfo() { try { Process[] MyProcesses = Process.GetProcesses(); string[] Minfo = new string[6]; foreach (Process MyProcess in MyProcesses) { if (MyProcess.MainWindowTitle.Length > 0) { Minfo[0] = MyProcess.M