private void WmDestroy (ref Message m) { if (!RecreatingHandle) this.closing = true; base.WndProc (ref m); }