本帖最后由 宋清飞 于 2013-10-31 19:35 编辑
interval,默认单位是毫秒。- namespace WindowsFormsApplication3
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- this.CurrentTime.Text = "当前时间:" + DateTime.Now.ToString();
- }
- }
- }
复制代码 |
|