timer的使用

 

  int i = 60;
        private void timer1_Tick(object sender, EventArgs e) //定时执行事件
        {
            button1.Text = i.ToString();//显示按钮的文本
            i--;//之后每次-1
        }

 

posted @ 2015-06-15 21:16  XCml  阅读(156)  评论(0编辑  收藏  举报