2010年7月6日

How to open a folder with explorer

摘要: System.Diagnostics.Process.Start(FileName);System.Diagnostics.Process.Start("explorer.exe",FolderPath);This method is so excited. I can implement my tool.FolderBrowserDialog FileOpenDialogSaveFileDial... 阅读全文
posted @ 2010-07-06 18:26 林骄 阅读(161) 评论(0) 推荐(0)
2010年7月2日

Print

摘要: Recently I do some study about print. So I want to do some summary.PrintDocumentThe main class is PrintDocument. And there are there dialog used to do some configurations.1.PrintDialog. It's used to c... 阅读全文
posted @ 2010-07-02 18:00 林骄 阅读(446) 评论(0) 推荐(0)
2010年6月22日

Can't open Infragistics help document

摘要: Because the new system use the Infragistics,so I install one.The vision is 2003 volumn 2,it is so old.I remembermy first company used this vision toowhen I just graduated from university three years a... 阅读全文
posted @ 2010-06-22 14:19 林骄 阅读(204) 评论(0) 推荐(0)

How to get local machine date format.如何获取本机时间格式

摘要: Sometimes we need to get local machine date format string.Example The Usertell us they want to see thedatehas same format as their compute.I spentsome time to find the method by using Google,but I fai... 阅读全文
posted @ 2010-06-22 10:39 林骄 阅读(519) 评论(0) 推荐(0)
2010年6月21日

cannot open user default database

摘要: 今天把SQL2005的默认数据库给删了。接着发现啥也不能干了。重现打开Studio,连都连不上。在Option那里把default database改成master,连上了。可是要干点啥的时候,他老人家就报cannot open default database。 google了一下。找了几个sqlcmd的命令,没成功。后来找了个sql语句 use master go sp_defaultdb ... 阅读全文
posted @ 2010-06-21 17:06 林骄 阅读(632) 评论(0) 推荐(0)
2010年6月9日

WebService

摘要: 一. IIS安装(WIN2003&XP)WIN2003:1. 进入“控制面板”。2. 双击“添加或删除程序”。3. 单击“添加/删除 Windows 组件”。4. 在“组件”列表框中,双击“应用程序服务器”。5. 双击“Internet 信息服务(IIS)&#... 阅读全文
posted @ 2010-06-09 11:14 林骄 阅读(814) 评论(0) 推荐(0)
2009年8月19日

Tips

摘要: * MSChart当X轴超过9个值时会间隔显示。如果要全显,需要设置属性:chartArea.AxisX.LabelStyle.Interval = 1;chartArea.AxisX.IsLabelAutoFit = false; 阅读全文
posted @ 2009-08-19 11:23 林骄 阅读(165) 评论(0) 推荐(0)
2009年8月16日

中文全半角转换

摘要: [代码] 阅读全文
posted @ 2009-08-16 00:55 林骄 阅读(302) 评论(0) 推荐(0)
2009年2月23日

Windows Service

摘要: 用Visual Studio创建一个Windows Service非常简便。新建项目,然后选择Windows服务。 用在一个服务里使用脉冲时间不能用System.Windows.Forms.Timer控件,要使用System.Timers.Timer。 在Service类里面定义一个私用成员。 System.Timers.Timer timer = new ... 阅读全文
posted @ 2009-02-23 22:10 林骄 阅读(407) 评论(0) 推荐(0)
2009年1月17日

20090116说说今天的事

摘要: 今天主要在考虑DataGrid的验证。现在的方法是在每一列的绑定上设置ValidationRules。可以自定义验证类,并继承ValidationRule抽象基类,实现其Validate方法。这样在文本框失去焦点的时候将会自动调用这个Validate方法验证数据。也可以设置DataGrid的RowValidationRules,这里的验证方法将在编辑完一行并失去焦点后触发。 阅读全文
posted @ 2009-01-17 00:05 林骄 阅读(118) 评论(0) 推荐(0)