How can I write code that will shut my program down around midnight each night? I was planning on putting a timer on the Main Menu form that checks the current time every 30min and shuts down if it's 12:00am, but my program has several forms on it, and the user may leave it running on any of them. I'd rather not put a timer on every form. Any ideas?

Thanks,
Greg