posted @ 2015-10-28 16:01
10 2015 档案
摘要:I'm building this application in Visual Studio 2010 using C#.Basically there are 2 files, form1.cs (which is the windows form) and program.cs (where a...
阅读全文
摘要:可以直接在窗体的AcceptButton和CancelButton中设置相应的按钮。也可以在后头通过代码设置:this.AcceptButton = (IButtonControl)btnSave;this.CancelButton = (IButtonControl)btnCancel;
阅读全文
posted @ 2015-10-23 17:30
摘要:This example shows how to formatDateTimeusingString.Formatmethod. All formatting can be done also usingDateTime.ToStringmethod.Custom DateTime Formatt...
阅读全文
posted @ 2015-10-22 16:02
摘要:方法1:System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); //重新开启当前程序Close();//关闭当前程序方法2:System.Windows.Forms....
阅读全文
posted @ 2015-10-20 11:54
摘要:在企业开发过程中经常会遇到文件的压缩与解压,虽然网上很多流行的压缩文件格式都是RAR的,但是由于RAR不是一个开放的标准,因此ZIP成了更多人的选择。如果你不想自己开发的话可以选择开源的项目,比如SharpZipLib就是一个不错的选择。using System;using System.Colle...
阅读全文
posted @ 2015-10-14 14:58
摘要:ADO.Net 在数据库操作过程中默认打开了连接池,不需要再进行手工配置。这个特性可以使数据库操作时效率提高,但也要有相应的代码配合,才能真正提高程序效率。1、连接字符串 ADO.Net 中的连接池大小可以通过数据库连接字符串来控制,例如: string cs = "server=.;uid=sa;...
阅读全文
posted @ 2015-10-14 11:49
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.ComponentModel.Design;using System.Windows.Forms;namespace Samp...
阅读全文
posted @ 2015-10-08 17:31
浙公网安备 33010602011771号