protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { if (this.Owner != null) { e.Cancel = true; } base.OnClosing(e); }