james chan的博客

[置顶] Log4net采用外部配置文件和多记录器的方法

摘要: 1) 创建配置文件,可以放在任意位置,名字可以任意的xml文件 例如,文件名 Log.Config.xml,内容如下 <?xml version="1.0" encoding="utf-8"?> <log4net name="DefaultLogger"> <root> <level value=" 阅读全文

posted @ 2019-07-12 13:35 james chan 阅读(422) 评论(0) 推荐(0) 编辑

[置顶] sql server存储过程,常用的格式

摘要: BEGINSET NOCOUNT ON;if @_MODE NOT IN ('A','M','D') begin raiserror('参数错误!',16,3); return; end; declare @rowcount int,@error int; if @_MODE='A'begin in 阅读全文

posted @ 2018-06-02 17:18 james chan 阅读(1058) 评论(0) 推荐(1) 编辑

2019年3月14日

Visual Studio项目属性的生产平台,如何改为X64?

摘要: 如图,我把平台改为x64,可是按打叉,退出后,再进入项目属性,还是 x86,没变. 解决方法: 选择 Setup1项目, 选择"属性" ->选择 "配置管理器" -> 对应的项目 的平台改为 x64, 即可搞定,如下图: 阅读全文

posted @ 2019-03-14 11:04 james chan 阅读(1868) 评论(0) 推荐(0) 编辑

2018年6月2日

自定义事件-继承表单

摘要: 以下是 基类 Form1 // 委托、事件是 public 和全局的 public delegate void ButtonClickdHandle(object sender, EventArgs e);//定义委托 public event ButtonClickdHandle UserCont 阅读全文

posted @ 2018-06-02 23:55 james chan 阅读(356) 评论(0) 推荐(0) 编辑