Integer constants specifying the cause of the OnQueryUnload event.
Name |
Value |
Description |
aformUnloadModeFormControlMenu |
0 * |
FormControlMenu. The user chose the Close command from the Control menu on the form. |
aformUnloadModeFormCode |
1 |
FormCode. The Unload statement is invoked from code. |
aformUnloadModeAppWindows |
2 |
AppWindows. The current Microsoft Windows operating environment session is ending. |
aformUnloadModeAppTaskManager |
3 |
AppTaskManager. The Microsoft Windows Task Manager is closing the application. |
aformUnloadModeFormMDIForm |
4 |
FormMDIForm. An MDI child form is closing because the MDI form is closing. |