C
C#User
i want this program every some specific time (15 mins) to do something. I
don't know how to do it. Shall i use threads or other technologies?
Thanks.
don't know how to do it. Shall i use threads or other technologies?
Thanks.
C#User said:i want this program every some specific time (15 mins) to do something. I
don't know how to do it. Shall i use threads or other technologies?
C#User said:i want this program every some specific time (15 mins) to do something. I
don't know how to do it. Shall i use threads or other technologies?
Thanks.
TomB said:Use a System.Timer, and set it to 60000. It'll fire every 1 minute. Then
have a member variable keeping track of how many times the event's been
fired. When it hits fifteen do whatever.
while(true){void loopthread(){ // start this from Form1
&& s.GetNextRun() < DateTime.Now // also, it needs toforeach(Schedule s in schedules){
if(s.Status == ScheduleStatus.Waiting