private void button1_Click(object sender, EventArgs e){ Timer timer1 = new Timer(); timer1.Interval = 1000; timer1.Enabled = true; timer1.Tick += new EventHandler(timer1EventProcessor);//添加事件 } private void timer1EventProcessor(object sender, EventArgs e) { do sth…… }
原文地址:https://www.cnblogs.com/vichin/p/9018031.html
时间: 2024-11-07 06:42:38