protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (ParentForm != null) ParentForm.FormClosing += FormClosing; }