摘要: 使用windows服务:1、新建项目--Windows服务2、在Service.cs编写程序3、配置:3.1、切换到设计视图,选择添加安装程序3.2、切换到安装程序ProjectInstaller.cs设计视图,右击serviceProcessInstaller组件,选择属性,设置Account属性... 阅读全文
posted @ 2015-08-28 10:50 扶我起来我还要敲 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1、首先要把你的窗体或者空间的AllowDrag属性设置为允许 2、注册DragEnter事件3、获得文件路径,先通过e.Data.GetFormats()方法获得所有数据格式4、调用e.GetData()方法根据指定的数据格式获得文件路径5、有了文件路径,相信一切问题迎刃而解下面是例子:pri... 阅读全文
posted @ 2015-08-28 10:49 扶我起来我还要敲 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: 使用ICallbackEventHandler接口可以方便地高效地实现Ajax功能 1、处理页面需实现ICallbackEventHandler接口,此接口有两个方法 a、GetCallbackResult 此方法返回处理结果给客户端,请求完成后自动调用 b、RaiseCallbackEvent此方 阅读全文
posted @ 2015-08-28 10:47 扶我起来我还要敲 阅读(262) 评论(0) 推荐(0) 编辑
摘要: The type Database cannot be constructed. You must configure the container to supply this value. 在ConnectionString配置节增加 providerName="System.Data.SqlCl 阅读全文
posted @ 2015-08-28 10:44 扶我起来我还要敲 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 一、全局热键注册1、先引用DLL[System.Runtime.InteropServices.DllImport("user32.dll")] //导入WinAPIpublic static extern bool RegisterHotKey( //设置热键IntPtr hWnd, // 窗口句... 阅读全文
posted @ 2015-08-28 10:42 扶我起来我还要敲 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 获得表信息:select syscolumns.name as field, syscolumns.isnullable as nullis, systypes.name as sqltype, syscolumns.[length] as lenth, ISNULL... 阅读全文
posted @ 2015-08-28 10:41 扶我起来我还要敲 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: 1、创建自定义类型 2、继承IHttpHandler接口,并实现 3、配置Web.Config文件,注册类型 4、访问public class QuickMsgSatisticsHandler : IHttpHandler { HttpContext context =... 阅读全文
posted @ 2015-08-28 10:37 扶我起来我还要敲 阅读(254) 评论(0) 推荐(0) 编辑