二楼的正解...
int n=0;
private void button1_Click(object sender, EventArgs e)
{
timer1.Interval = 60000;
timer1.Enabled = true;
}
private void timer1_Tick(object sender, EventArgs e)
{
if (n == 10)
{
Application.Exit();
}
else
{
n++;
}
}
点下Button1,11分钟后,应用程序就关了