How to write C# Scheduler

后端 未结 6 1441
故里飘歌
故里飘歌 2020-12-31 14:40

How do I write a Alert which will run at 00:00, 00:15, 00:30, and so on every day?

Can you give me an example code?

Thank you.

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 15:13

    If you want the windows service that executes some code with some time interwal, you need to create the service project (see here), and use in this service the Timer class (see here). If you want to run these task when your windows application is executes, use the Windows.Forms.Timer, as mentioned before.

提交回复
热议问题