How can I run a piece of code every five minutes?
Posted on 2008-09-30
I've been reading up on System.Timers.Timer and System.Threading.Timer, but I can't seem to make the synaptic leap between my n00bness and the answer. Basically, I just want to run a piece of code every five minutes. Right now it's running on a button click. I'd rather have it just run every five minutes on its own so the user can minimize the application and only worry about it when something happens. So, how do I make a line of code run at a timed interval?