C#系统操作实时显示CPU内存使用率Microsoft.VisualBasic.Devices.ComputermyInfo=newMicrosoft.VisualBasic.Devices.Computer();//获取物理内存总量pbMemorySum.Maximum=Convert.ToInt32(myInfo.Info.TotalPhysicalMemory/1024/1024);pbMemorySum.Value=Convert.ToInt32(myInfo.Info.TotalPhysicalMemory/1024/1024);