自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

转载 c# SQLHelper(for winForm)实现代码

using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace HelloWinForm.DBUtility { class SQLHelper { #region 通用方法 // 数据连接池 private SqlC

2011-01-11 19:02:00 282

转载 设置C#窗体程序只能启动一次

<br />在程序的main函数中加入以下代码 <br />bool createdNew; <br />System.Threading.Mutex instance = new System.Threading.Mutex(true, "MutexName", out createdNew); <br />if (createdNew) <br />{ <br />Application.Run(new LoginForm()); <br />instance.ReleaseMutex(); <br /

2011-01-11 18:57:00 262

原创 创建XML文件

C#文件:using System.IO;using System.Xml;static void Main(string[] args)

2011-01-02 15:44:00 146

转载 增删改Xml文件

<br />using System; <br />using System.Collections; <br />using System.ComponentModel; <br />using System.Data; <br />using System.Drawing; <br />using System.Web; <br />using System.Web.SessionState; <br />using System.Web.UI; <br />using System.Web.UI.We

2011-01-02 15:40:00 203

原创 读写Ini文件

<br />using System;<br />using System.Runtime.InteropServices;<br />using System.IO;<br />using System.Text;<br />namespace WriteAndReadIni<br />{<br />    class Program<br />    {<br />        [DllImport("kernel32")]<br />        private static extern lon

2011-01-02 15:36:00 217

转载 Window 消息大全

<br />写在前面:本文纯属资料收藏,以作备忘,并无任何技术含量!<br />消息,就是指Windows发出的一个通知,告诉应用程序某个事情发生了。例如,单击鼠标、改变窗口尺寸、按下键盘上的一个键都会使Windows发送一个消息给应用程序。 <br />消息本身是作为一个记录传递给应用程序的,这个记录中包含了消息的类型以及其他信息。例如,对于单击鼠标所产生的消息来说,这个记录中包含了单击鼠标时的坐标。这个记录类型叫做TMsg,它在Windows单元中是这样声明的: <br />type <br />TMs

2011-01-01 19:06:00 148

转载 C#中托管与非托管

<br />在.net 编程环境中,系统的资源分为托管资源和非托管资源。<br />  对于托管的资源的回收工作,是不需要人工干预回收的,而且你也无法干预他们的回收,所能够做的<br />只是了解.net CLR如何做这些操作。也就是说对于您的应用程序创建的大多数对象,可以依靠 .NET <br />Framework 的垃圾回收器隐式地执行所有必要的内存管理任务。<br />  对于非托管资源,您在应用程序中使用完这些非托管资源之后,必须显示的释放他们,例如<br />System.IO.StreamRe

2010-12-31 14:18:00 183

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除