Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form unload question
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Form unload question
Divers
Thread ID:
00671464
Message ID:
00671464
Vues:
42
Hi,

I have a form used for importing records. Once the user selects the file and clicks import, the progress bar starts up and the file gets imported. I also give the user the option to cancel the import at any point before the import is complete.

I can handle this OK if the user clicks the "Cancel Import" button - a messagebox appears and asks if they are sure they want to cancel - if YES, the import is cancelled, if NO, the import resumes.

However, I can't get this to work when the user closes the form by clicking on the 'X'. Can I trap an event in the form unload event and then, based on the answer to a question in a messagebox, prevent the form from unloading?

Al
Al Williams

Anola MB, CANADA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform