2013年6月17日

摘要: 1.添加一个安装项目后,右键点击新添加的安装项目->视图->注册表。2.点击HKEY_CURRENT_USER->Software后在Software下面新建键Microsoft在Microsoft下面新建键Windows在Windows下新建键CurrentVersion在CurrentVersion下面新建键Run然后在右侧空白处右键新建->字符串值写上名字,如:StartRun值为[TARGETDIR]后面加上你的主输出程序的EXE,如[TARGETDIR]Test.exe就OK了。此图为新建键的目录 阅读全文
posted @ 2013-06-17 16:37 Smile陌影 阅读(164) 评论(0) 推荐(0)

2013年5月28日

摘要: Entity Framework4.1实现动态多条件查询、分页和排序转自http://www.cnblogs.com/ahui/archive/2011/08/04/2127282.htmlEF通用的分页实现:View Code?1234567891011121314151617181920212223/// <summary> /// 根据条件分页获得记录 /// </summary> /// <param name="where">条件</param> /// <param name="orderBy&qu 阅读全文
posted @ 2013-05-28 15:49 Smile陌影 阅读(542) 评论(0) 推荐(0)

2013年5月17日

摘要: /**Copyright (c) 2008..11 by Simon Baer* * You may use this code for whatever you want.*/using System;using System.Text;using System.Runtime.InteropServices;using System.Diagnostics;namespace Common{/// <summary>/// Helper class for hiding/showing the taskbar and startmenu on/// Windows XP and 阅读全文
posted @ 2013-05-17 17:00 Smile陌影 阅读(238) 评论(0) 推荐(0)
摘要: /// <summary> /// 调用cmdping操作如果ping通则返回true否则返回false /// </summary> /// <param name="strIp"></param> /// <returns></returns> public static bool CmdPing(string strIp) { RegistryKey rk; rk = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windo 阅读全文
posted @ 2013-05-17 16:56 Smile陌影 阅读(302) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace AJTD.Common{ public class VideoWork { private const int WM_USER = 0x400; private const int WS_CHILD = 0x40000000; private const int WS_VISIBLE = 0x10000000; private const int WM_CAP_START = 阅读全文
posted @ 2013-05-17 16:47 Smile陌影 阅读(267) 评论(0) 推荐(0)
摘要: /// <summary> /// 将byte[]类型转换为Image类型 /// </summary> /// <param name="arr"></param> /// <returns></returns> public static Image ByteToImage(byte[] arr) { Image image = null; if (arr != null) { MemoryStream mymemorystream = new MemoryStream(arr); //Bitmap 阅读全文
posted @ 2013-05-17 16:45 Smile陌影 阅读(201) 评论(0) 推荐(0)
摘要: /// <summary> /// 检查身份证号码是否合法 /// </summary> /// <param name="cardid">身份证号</param> /// <returns>合法返回true,否则返回false</returns> public static bool CheckIDCard(this string cardid) { if (cardid.Length == 15) //如果身份证号为15位 { return CheckIDCard15(cardid); //调用Ch 阅读全文
posted @ 2013-05-17 16:43 Smile陌影 阅读(169) 评论(0) 推荐(0)
摘要: 我的WCF之旅(1):创建一个简单的WCF程序原文链接http://www.cnblogs.com/artech/archive/2007/02/26/656901.html为了使读者对基于WCF的编程模型有一个直观的映像,我将带领读者一步一步地创建一个完整的WCF应用。本应用功能虽然简单,但它涵盖了一个完整WCF应用的基本结构。对那些对WCF不是很了解的读者来说,这个例子将带领你正式进入WCF的世界。在这个例子中,我们将实现一个简单的计算服务(CalculatorService),提供基本的加、减、乘、除的运算。和传统的分布式通信框架一样,WCF本质上提供一个跨进程、跨机器以致跨网络的服务调 阅读全文
posted @ 2013-05-17 14:48 Smile陌影 阅读(406) 评论(0) 推荐(0)

导航