I'm sorry, Even I not sure what exactly the correct approach to do this,
I'm trying to create a timer that will tick in certain time of day something like scheduler, first i tried to do it by set the ticker time when the application load:
But this is good only for the first tick, once the tick is finish i must to re-set it to the same time tomorrow, but the calculation will be wrong this time, any ideas?Code:Dim timeNow As DateTime = Now.TimeOfDay.ToString() Dim NextUpdate As DateTime = "09:05:00" ' MessageBox.Show(DateDiff(DateInterval.Second, TimeNow, NextUpdate).ToString()) Timer1.Interval = (DateDiff(DateInterval.Second, timeNow, NextUpdate).ToString() * 1000)




If you Like it 
Reply With Quote