这里的timer是定时器,要使标签控件每隔1s显示倒计时60s剩下的时间,我已经将数字转换成客串了,
private int second=10; private void timer1_Tick(object sender, EventArgs e) { string str = second.ToString(); TimeLabel.Text = str; tenthSecond--; if (tenthSecond == 0) { tenthSecond = 10; second--; if (second == 0) { // timer1.Enabled = false; this.TimeLabel.Text = "时间到"; } } } //给你个例子 自行参悟 也是10秒倒计时