private void timer1_Tick(object sender, EventArgs e)
        {
            TimeSpan ts = new TimeSpan(0, 0, 0);
            string str = ts.Hours + ":" + ts.Minutes + ":" + ts.Seconds;
            labtime.Text = str;
            ts = ts.Subtract(new TimeSpan(0, 0, -1));
        }

 

20150511---Timer计时器(备忘)  20150511---Timer计时器(备忘)

注:TimeSpan主要用来进行倒计时。

相关文章:

  • 2021-12-01
  • 2021-07-13
  • 2021-07-29
  • 2022-12-23
  • 2021-08-28
  • 2022-01-30
  • 2022-12-23
  • 2021-04-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案