My program loads forms into the main form of the application. These forms are loaded from Class Library projects.
The forms in the DLL's have text boxes on them so, in the closing event I do a check to see if any values differ from the database and then put up a message box to give the user a chance to save. It works fine when I close the DLL form.
Problem I am having is when you close the app using the close icon on the main form, it disregards the DLL forms closing event and closes the whole thing.
How can I intercept this? Since I can't set a value back to the main app using a dll (or can I?) without using proper plugin design.
The forms in the DLL's have text boxes on them so, in the closing event I do a check to see if any values differ from the database and then put up a message box to give the user a chance to save. It works fine when I close the DLL form.
Problem I am having is when you close the app using the close icon on the main form, it disregards the DLL forms closing event and closes the whole thing.
How can I intercept this? Since I can't set a value back to the main app using a dll (or can I?) without using proper plugin design.