12 2009 档案
c# 关闭其它应用程序
摘要:利用线程关闭已开启的应用程序,代码如下:using System.Diagnostics; public void CloseSoundApp() { Process[] pProcess; pProcess = Process.GetProcesses(); for (int i = 1; i <= pProcess.Length - 1; i++) { if (pProcess[i].P...
阅读全文
posted @ 2009-12-04 11:29
快乐小精灵
字符串拆分加循环
摘要:string strDate="2009-05-10"; string[] str = strDate.Split('-');foreach (string i in str){//代码 }
阅读全文
posted @ 2009-12-01 13:25
快乐小精灵
浙公网安备 33010602011771号