日期:2014-05-18 浏览次数:20952 次
private void button1_Click(object sender, EventArgs e) { this.timer1.Interval = 1000;//设置每隔一秒钟执行一次 this.timer1.Enabled = true; this.timer1.Start(); } private void timer1_Tick(object sender, EventArgs e) { //方法1 //方法2 }