Hi,

I guess no one knows how to make a module that is running in the background close when windows shuts down. My program will not close when windows shuts down. It is a module, with no forms that runs in the background. All of my code is in the Sub Main(). I started with a form set to be invisible but then my code would not execute. So, I put it in a module, and it ran but would not close when windows shuts down (told my program was not respnding, have been told this is because vb does not understand what do when windows sends its shut down message). I have a loop in my program and would like it to end when windows shuts down. I have been told that I have to subclass, but I do not know how. I have posted many posts on this topic, with little success. So I thought I would give it one last try.


Thanks for all you help and understanding,

Kevin