摘要: 关于类资源的释放我们自定义的类并不像窗体类那样当窗体关闭时自动调用释放函数(实际上是重载基类函数)如下: /// /// 清理所有正在使用的资源。 /// /// 如果应释放托管资源,为 true;否则为 false。 protected override void Dispose(bool disposing) ... 阅读全文
posted @ 2007-02-03 23:54 sunney 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Visual Studio 2005(C#)中只允许一个实例运行的一种方法 using System;using System.Collections.Generic;using System.Windows.Forms; namespace School.ReadPaperControl{ static class Program { /// /// T... 阅读全文
posted @ 2007-02-03 23:32 sunney 阅读(688) 评论(0) 推荐(0) 编辑