标签:
Timer就是用来计时操作,如:你想在多少秒之后执行某个动作
Timer showTextBoxTimer = new Timer(); //新建一个Timer对象
showTextBoxTimer.Interval = 1000;//设定多少秒后行动,单位是毫秒
showTextBoxTimer.Tick += new EventHandler(showTextBoxTimer_Tick);//到时所有执行的动作
showTextBoxTimer.Start();//启动计时
System.Windows.Forms.Timer的简单用法
标签:
原文地址:http://www.cnblogs.com/tommy-huang/p/4228365.html