I have code to save a value to the database in the Close Event of a window. But the problem is that this code ALWAYS runs when I close the app itself, which, obviously also closes that window. How can I avoid that the Close window code runs when I close the app?
7 posts - 3 participants