public partial class EntryPass : Form { public EntryPass() { InitializeComponent(); } ActionForm af = new ActionForm(); private void EntryPass_FormClosing(object sender, FormClosingEventArgs e) { bool cancel = true; if (MessageBox.Show("Do You Really Want to Quit?", "ExitWindow", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { cancel = false; af.Activate(); af.Show(); } e.Cancel = cancel; }
EntryPass
ActionForm
stackoverflowexception
ActionForm af = new ActionForm();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)