Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting form shutdown
Message
De
24/08/2005 08:33:05
 
 
À
23/08/2005 19:33:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01042947
Message ID:
01043258
Vues:
15
>You can use either. If you want to avoid form closing, Closed() is too late.
>
>Here is an example that conditionally avoids closing:
>
>
>private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
>{
>  e.Cancel = (MessageBox.Show("Some question", "Message",
>    MessageBoxButtons.OKCancel,  MessageBoxIcon.Information )).ToString()
>    != "OK";
>}
>
Thanks, this is good help.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform