Discussion Locked

VB Query UNLoad

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the difference between Unload and Query Unload in VB

1 reply

by nikki96

Unload is the actual unloading of the form. QueryUnload happens just before it, so if you wanted to, you could stop the unload.
Kind of like "Are you sure you want to quit?". :)

We use QueryUnload for just that kind of thing, too. Asking the user if they are sure, making sure changes are committed, etc before the form actually unloads. Once it hits Unload, there is no stopping it without an error.

Unload, BTW, is the removal of the form from memory.

This discussion is closed to new replies.