Click here to Skip to main content
Sign Up to vote bad
good
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:26
sai sagar1.6K

Comments
pranathis012 - 8 Jan '13 - 1:43
could you please be explain your requirement clearly..
sai sagar - 8 Jan '13 - 1:58
how to set time interval for one day.

1 solution

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 - 8 Jan '13 - 2:10
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 - 8 Jan '13 - 2:27
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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 419
1 Mahesh Bailwal 343
2 CPallini 245
3 Maciej Los 230
4 Aarti Meswania 173
0 Sergey Alexandrovich Kryukov 9,162
1 OriginalGriff 7,194
2 CPallini 3,923
3 Rohan Leuva 3,176
4 Maciej Los 2,633


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid