If your form is "myForm", go to the InitializeComponents method, and
in the "myForm" section, type this.Closing+= (tab-tab)
The (tab-tab) will create the nessecary method,
private void myForm_Closing(object sender, CancelEventArgs e)
{
//set e.Cancel =true to prevent exiting
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.