2020-03-25 每日一例第14天
1.新建对话框,拖timer1/dateTimePicker1;
2.代码;
a.窗体加载时代码:
timer1.Interval = 1000;
dateTimePicker1.Value = DateTime.Parse("2015-01-01 00:00:00");
b.计时器代码:
dateTimePicker1.Value = dateTimePicker1.Value.AddSeconds(1);
3.完成结果;