protected override void OnFormClosing(FormClosingEventArgs e) { try { base.OnFormClosing(e); if (MsgBox.Show(DomainUtils.GetMessageValue("SYSTEM_CLOSE"), "HELP", MessageBoxButtons.YesNo) != DialogResult.Yes) { e.Cancel = true; } } catch (Exception ex) { MsgBox.Show(ex); } }