Clock on Windows Form without polling?

后端 未结 1 1761
终归单人心
终归单人心 2021-01-29 05:10

I need to display current time with seconds on my form. My clock must display seconds and im afraid about performance.

  1. Is there any method without polling? (some s
1条回答
  •  北海茫月
    2021-01-29 06:11

    You should just use a System.Windows.Forms.Timer and display DateTime.Now in each tick.

    0 讨论(0)
提交回复
热议问题