Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form unload question
Message
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Form unload question
Miscellaneous
Thread ID:
00671464
Message ID:
00671464
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform