• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
快乐小精灵
博客园    首页    新随笔    联系   管理    订阅  订阅
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 快乐小精灵

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3