随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

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... 阅读全文

posted @ 2015-10-28 16:01 eastson 阅读(273) 评论(0) 推荐(0) 编辑

摘要:可以直接在窗体的AcceptButton和CancelButton中设置相应的按钮。也可以在后头通过代码设置:this.AcceptButton = (IButtonControl)btnSave;this.CancelButton = (IButtonControl)btnCancel; 阅读全文

posted @ 2015-10-23 17:30 eastson 阅读(869) 评论(0) 推荐(0) 编辑

摘要:This example shows how to formatDateTimeusingString.Formatmethod. All formatting can be done also usingDateTime.ToStringmethod.Custom DateTime Formatt... 阅读全文

posted @ 2015-10-22 16:02 eastson 阅读(207) 评论(0) 推荐(0) 编辑

摘要:方法1:System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); //重新开启当前程序Close();//关闭当前程序方法2:System.Windows.Forms.... 阅读全文

posted @ 2015-10-20 11:54 eastson 阅读(305) 评论(0) 推荐(0) 编辑

摘要:在企业开发过程中经常会遇到文件的压缩与解压,虽然网上很多流行的压缩文件格式都是RAR的,但是由于RAR不是一个开放的标准,因此ZIP成了更多人的选择。如果你不想自己开发的话可以选择开源的项目,比如SharpZipLib就是一个不错的选择。using System;using System.Colle... 阅读全文

posted @ 2015-10-14 14:58 eastson 阅读(283) 评论(0) 推荐(0) 编辑

摘要:ADO.Net 在数据库操作过程中默认打开了连接池,不需要再进行手工配置。这个特性可以使数据库操作时效率提高,但也要有相应的代码配合,才能真正提高程序效率。1、连接字符串 ADO.Net 中的连接池大小可以通过数据库连接字符串来控制,例如: string cs = "server=.;uid=sa;... 阅读全文

posted @ 2015-10-14 11:49 eastson 阅读(175) 评论(0) 推荐(0) 编辑

摘要: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 eastson 阅读(336) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示