2009年11月15日
摘要: 将程序加到启动组 有时需要将程序设置成随系统启动,最简单的一种就是放在 程序-->启动组里面。其实就是创建一个快捷方式而已, 呵呵我们需要一个 com 组件, 名叫 "Window Script Host Object Model ", 将它加入引用中代码就很简单了, 为了方便调用, 将它写成一个函数 /**//// /// 将程序的快捷方式添加到启动组 /... 阅读全文
posted @ 2009-11-15 21:05 WPF之家 阅读(180) 评论(0) 推荐(0)
摘要: 背景:实现GridView的单选列,传统的做法应该是新增模板列,然后添加RadioButton,客户端实现单选,后台遍历读取选中行数据。 第一:添加模板列,加入RadioButton。为了取值方便,我把记录的主键放在HiddenField中保存。 Code highlighting produced by Actipro CodeHighlighter (freewar... 阅读全文
posted @ 2009-11-15 21:04 WPF之家 阅读(359) 评论(0) 推荐(0)
摘要: /**//// /// 当前月有多少天 /// /// /// /// public static int HowMonthDay(int y, int m) { int mnext; int ynext; if (m ... 阅读全文
posted @ 2009-11-15 14:29 WPF之家 阅读(237) 评论(0) 推荐(0)