I need some general advice on Windows form application development. We're writting a module for Microsoft's CAB framework. Our main content for this module is a DockPanel, ultimately containing multiple forms displayed as tabs.
What I'd like to be able to do is check each tab when the application is quit to see if the form is dirty, and if so, prompt the user to save his/her changes. I've done this sucessfully for each close of the tab, but I'm not sure what the cleanest solution is to implement this on the application closing.
I can add an event listener to the onClosing event of the Shell Application, but that seems a bit dirty. I don't know that I'm properly using the validation provided by windows, it seems like all forms should validate when they are unloading.
Thanks in advance,