public const int WM_NCLBUTTONDBLCLK = 0xA3 ; protected override void WndProc( ref Message m) ... { if (m.Msg == WM_NCLBUTTONDBLCLK) ...{ this.Close(); } base.WndProc(ref m); }