I'm leaving work in a fews weeks time and as a small leaving gesture I've wrote a program that counts down the days, hours, minutes and seconds for my colleagues.
Only thing is, I've made this program start automatically using the windows registry, placed the form on top of all other windows, hidden the program from task manager and cancelled the form closing event... which instead hides the form so that I can remind my colleagues of the remaining time two hours later
All is working beautifully, I've even made my program display a farewell message on the day/time of my departure and on the next couple of days at work I provide a little advice before giving them a button that will remove the registry entry and close the program for good (I'm still chuckling to myself :sign0013
Now for the problem - I tested everything and it all appeared to work, the messages display on the correct days and times, the window looks to have closed but returns two hours later etc. However Windows will no longer shutdown :sign0161: Instead I need to stop the process in task manager before starting the Windows shutdown. I'm guessing that I need to make my program look for a Windows message? Which one? Can someone help?
Regards,
RandomCoder.
Only thing is, I've made this program start automatically using the windows registry, placed the form on top of all other windows, hidden the program from task manager and cancelled the form closing event... which instead hides the form so that I can remind my colleagues of the remaining time two hours later
All is working beautifully, I've even made my program display a farewell message on the day/time of my departure and on the next couple of days at work I provide a little advice before giving them a button that will remove the registry entry and close the program for good (I'm still chuckling to myself :sign0013
Now for the problem - I tested everything and it all appeared to work, the messages display on the correct days and times, the window looks to have closed but returns two hours later etc. However Windows will no longer shutdown :sign0161: Instead I need to stop the process in task manager before starting the Windows shutdown. I'm guessing that I need to make my program look for a Windows message? Which one? Can someone help?
Regards,
RandomCoder.