标签:结果 int font code 对话 img color mamicode timer控件
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.完成结果;
标签:结果 int font code 对话 img color mamicode timer控件
原文地址:https://www.cnblogs.com/ljs7490/p/12563460.html