Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
how to set Timer interval for one week.
in my combo box contains 5 min,1 hr, 10 hr, 1 day, 2 Days, 1 Week, 2 weeks..
now i select 5 min time interval should be 5 min. immediately i select 2 days time interval should be 2 days. same as for 1 Week also.
Posted 7-Jan-13 19:26pm
sai sagar1.9K
Comments
sai sagar at 8-Jan-13 1:58am
   
how to set time interval for one day.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can modify the timer interval[^] property.
 
once you set the new TimerInterval Timer will tick for the new interval. say you set Interval as 5 min and you modified the interval to 10 mins after 3 mints, Elapsed even will be raised for the first time after 13 mints
  Permalink  
Comments
sai sagar at 8-Jan-13 2:10am
   
how to set time interval for one week.. in my db i stored start date and end date. now i want to set time interval for every day with in a week.
jibesh at 8-Jan-13 2:27am
   
do your school math. one week ( 7 days * 24 hr) = 168 hrs

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 248
1 Maciej Los 210
2 Sergey Alexandrovich Kryukov 160
3 Peter Leow 155
4 George Jonsson 135


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid