摘要: //ListView 的设计this.ListView1 = new System.Windows.Forms.ListView(); this.ListView1.BackColor = System.Drawing.SystemColors.Control; this.ListView1.Dock = System.Windows.Forms.DockStyle.Top; this.ListView1.Location = new System.Drawing.Point(0, 0); this.ListView1.Name = "ListView1"; this.Li 阅读全文
posted @ 2013-04-08 18:51 Predator 阅读(228) 评论(0) 推荐(0) 编辑
摘要: public static bool FindAndKillProcessByName(string name) { //Parameter check if (0 == name.Length) { return false; } //Find the named process and terminate it foreach (Process winProc in Process.GetProcesses()) { //use equals for the task in case we kill //a wrong process if (winProc.ProcessName... 阅读全文
posted @ 2013-04-08 18:49 Predator 阅读(149) 评论(0) 推荐(0) 编辑