摘要: 窗体中拖入 notifyIcon 组件notifyIcon 中的 ICON 属性 显示的图标下面是系统托盘的基本功能代码(单击最小化窗体隐藏,双击图标显示)及窗体关闭时退出确认代码。  //单击最小化窗体隐藏  private void frmMain_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWin... 阅读全文
posted @ 2010-08-20 19:16 海乐学习 阅读(9644) 评论(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 海乐学习 阅读(3485) 评论(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 海乐学习 阅读(6866) 评论(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 海乐学习 阅读(441) 评论(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 海乐学习 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 在写代码时经常遇到字符串截取问题,下面是在C#编程中一种不错的截取方式。string str="A,B,C,D";string strTemp1=str.Split(new char[] { ',' })[0];string strTemp2=str.Split(new char[] { ',' })[2];则结果为 strTemp1 为 AstrTemp2 为 C 阅读全文
posted @ 2010-07-28 14:15 海乐学习 阅读(438) 评论(2) 推荐(0) 编辑
摘要: 1.用脚本判断点击的是否为回车键<script type="text/javascript" > function EnterKeyClick() { if (event.keyCode == 13) { event.keyCode = 9; } } </script>2.前台<ext:FormLayout ID="FormLayout3" runat="server... 阅读全文
posted @ 2010-07-28 10:35 海乐学习 阅读(1486) 评论(0) 推荐(0) 编辑
摘要: 1.修正了第二次加载模块时出错。问题原因:问题不在加载模块中,而是在创建模块时。 复制manifest.php文件时,将模板(modules\SimpleMod\manifest.php)更改了。 在模板中'SimpleMod'这种变量是要在创建新模块时改新的。如'SimpleMod'变量应更新为新模块的名称。解决方案:在modules\Builder\BuildModule.php 文件中 1.在$xFileType = ".php"; 语句后写:$xPath = "cache/ModuleBuilder/"; 改变更新目标文件路径 2.将此语名 copy ("modules/SimpleM 阅读全文
posted @ 2010-07-28 10:23 海乐学习 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1.logo图片 \themes\ClassicSugar\images\company_logo.png 在此文件中 \themes\ClassicSugar\header.html 2.登陆图片 \images\middle-bg.gif 3.默认主题 \config.php 'default_theme' = 'ClassicSugar' 4.不显示选择主题 \login.php 位置:td align=right主题:/tdtdselect style='width: 120px' name='login_theme' 注释掉。 注意:如果不是OA主题,应选择要用的 阅读全文
posted @ 2010-07-28 10:22 海乐学习 阅读(511) 评论(0) 推荐(0) 编辑
摘要: (一)后台写JavaScript方式Response.Write("<script>widow.alert(\" " + this.Test1.text + "\")</script>" );(二)Button的OnClientClick 属性方式注:点取消则不执行服务器端的OnClick事件例:<asp: button OnClientClick="return c... 阅读全文
posted @ 2010-07-25 13:47 海乐学习 阅读(443) 评论(0) 推荐(0) 编辑