TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Lukasz
NA
2
0
Setting Timer interval
Jan 29 2007 12:07 PM
I have problem with setting timer interval propably because of the type conversion. Please see my code below.
--------------------------------------
CODE
TimeSpan HourNow = CurrTime.TimeOfDay;
TimeSpan HourScheduled = new TimeSpan (1,readint,RandomStartMin, 0);
TimeSpan Duration = HourScheduled - HourNow;
timer1.Interval = Convert.ToInt32(Duration.TotalMilliseconds);
timer1.Tick += new EventHandler(DayTicker);
timer1.Start();
--------------------------------------
Firs time start is ok, but it is lunching DayTicker() 6 to 10 times in 1 minute, despite interval is set to = 1000000
Please help
When i put there
timer1.Interval = 10000
it works all right
Reply
Answers (
0
)
design time appearance for custom chart control
how can I store a hidden value with a combobox...