Hi Everyone,

I have an application that has threads continually running in the background monitoring different settings. When the end users x's out of my program, the threads remain as a process in windows even though the GUI is closed.

How do I terminate the threads when the GUI is x'd out, or how do I put logic into the threads to end if the GUI is closed?

Thank you all in advance.