Click here to Skip to main content
12,634,982 members (28,840 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# 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 20:26pm
Comments
sai sagar 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 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 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
Top Experts
Last 24hrsThis month


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100