摘要: //返回的是一个数组,可能存在多个CPUusing System;using System.Management;using System.Collections;public ArrayList GetCpuID() {ArrayList al=new ArrayList();try{ManagementClass mc = new ManagementClass("Win32_Processor");ManagementObjectCollection moc = mc.GetInstances(); foreach( ManagementObject mo in mo 阅读全文
posted @ 2004-11-10 17:26 greystar 阅读(414) 评论(1) 推荐(0) 编辑
摘要: private void Form3_Paint(object sender, System.Windows.Forms.PaintEventArgs e){Graphics g=this.CreateGraphics();Rectangle rect=this.ClientRectangle;//设置高度和宽int WIDTH=rect.Width/2;int HEIGHT=rect.Height/2;g.SmoothingMode=SmoothingMode.AntiAlias;FontFamily f=new FontFamily("宋体");Font font=ne 阅读全文
posted @ 2004-11-10 16:59 greystar 阅读(459) 评论(0) 推荐(0) 编辑