Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
[no name] 8-Jan-13 1:43am    
could you please be explain your requirement clearly..
sai sagar 8-Jan-13 1:58am    
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
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900