M
Max Moor
Hi All,
I keep a left side navigation form open all the time in my app. On it
is a list of all the open forms in the remaining MDI space. When a new form
is opened, it adds itself to that list. When the user closes the form, it
removes itself.
The list is really a listbox tied to a table with all the forms that
might be open listed. A Yes/No field tracks if the form is open or not. The
intent was to have this table remember what was open, and have the left-nav
form reopen the last open forms each time the app starts.
I stuck the remove-from-list call in the forms' close events.
Unfortunately, these fire as the app shuts down, so the list is always
emptied, and the app always opens with and empty forms space.
What event or other mechanism can I use to tell the difference between
the user closing the form with a close button, and the form just closing
because the app is exiting?
Regards,
Max
I keep a left side navigation form open all the time in my app. On it
is a list of all the open forms in the remaining MDI space. When a new form
is opened, it adds itself to that list. When the user closes the form, it
removes itself.
The list is really a listbox tied to a table with all the forms that
might be open listed. A Yes/No field tracks if the form is open or not. The
intent was to have this table remember what was open, and have the left-nav
form reopen the last open forms each time the app starts.
I stuck the remove-from-list call in the forms' close events.
Unfortunately, these fire as the app shuts down, so the list is always
emptied, and the app always opens with and empty forms space.
What event or other mechanism can I use to tell the difference between
the user closing the form with a close button, and the form just closing
because the app is exiting?
Regards,
Max