How to work with timer control in C#
-
My query is i have some data which i want to run every 5 minutes for 6 hours duration right from 8am to 2pm for about a month. the data should run only on those specified duration else the timer should stop. how can i proceed this with the timer control kalyan -- modified at 3:55 Monday 8th May, 2006
-
My query is i have some data which i want to run every 5 minutes for 6 hours duration right from 8am to 2pm for about a month. the data should run only on those specified duration else the timer should stop. how can i proceed this with the timer control kalyan -- modified at 3:55 Monday 8th May, 2006
Well, I guess DateTime.Now to work out if it's inside the timeframe you want, and run the timer in shorter intervals if it's vital it start at exactly 8 am, then set it to run every five minutes until 2 pm is passed. Christian Graus - Microsoft MVP - C++