08 2010 档案

摘要:窗体中拖入 notifyIcon 组件notifyIcon 中的 ICON 属性 显示的图标下面是系统托盘的基本功能代码(单击最小化窗体隐藏,双击图标显示)及窗体关闭时退出确认代码。  //单击最小化窗体隐藏  private void frmMain_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWin... 阅读全文
posted @ 2010-08-20 19:16 海乐学习 阅读(9666) 评论(0) 推荐(0) 编辑
摘要:using System.Runtime.InteropServices;[DllImport("kernel32.dll")] public static extern bool Beep(int freq,int duration); public void PlayBeep(){//调用Beep(800,3000); } 阅读全文
posted @ 2010-08-17 15:39 海乐学习 阅读(3500) 评论(0) 推荐(0) 编辑
摘要:一、时间间隔 /// summary时间间隔/summary /// param name="DateTime1"第一个日期和时间/param /// param name="DateTime2"第二个日期和时间/param /// returns同一天的相隔的分钟的整数部分/returns private int DateDiff(DateTime DateTime1, DateTime DateTime2) { TimeSpan ts1 = new TimeSpan(DateTime1.Ticks); TimeSpan ts2 = new TimeSpan( 阅读全文
posted @ 2010-08-17 15:36 海乐学习 阅读(6877) 评论(0) 推荐(0) 编辑
摘要:在下面文件中libraries/select_lang.lib.php  1、找到有"zh-gb2312"的那一行,把'zh-gb2312' 改成 'zh-gb2312-utf-8'  为什么这样加?那是因为服务器会把没有"-utf-8"的语言过滤掉,在libraries/database_interface.lib.php 第168行,根据英文说:“为了防止混淆”,或者如... 阅读全文
posted @ 2010-08-09 11:23 海乐学习 阅读(446) 评论(0) 推荐(0) 编辑
摘要:using System.IO;DirectoryInfo di = new DirectoryInfo(strXmlFilePath);FileInfo[] f = di.GetFiles("*.xml");//获取指定扩展名的文件//没有xml文件if (f.Length <= 0){return;}//遍历所有文件(*.xml)foreach (FileInfo myFile in f... 阅读全文
posted @ 2010-08-05 11:21 海乐学习 阅读(586) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示