winform dispose
摘要:触发 Form1_FormClosing,closedthis.Close();////循环调用所有窗口的 close ();Application.Exit();// 释放 非 托管资源,但是 不能关闭窗口 this.Dispose(false);//释放 非 托管资源, 关闭窗口 (释放托管资源) this.Dispose(true);//默认 为true 等价于 this.Dispose(true);(this as IDisposable).Dispose();
阅读全文
posted @ 2012-12-07 10:08
浙公网安备 33010602011771号