public partial class Form1 : Form
{
int count = 30;
public Form1()
{
InitializeComponent();
textBox1.Text = count.ToString();
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (--count == 0)
count = 30;
textBox1.Text = count.ToString();
}
}
在timer时间里面加入Application.DoEvent()