for (int i = 1; i < 10000; i++)
{
this.label1.Text = i.ToString();
Application.DoEvents();
System.Threading.Thread.Sleep(1000);
}
动态跟踪循环体 避免“假死”
最新推荐文章于 2024-08-21 21:53:34 发布
for (int i = 1; i < 10000; i++)
{
this.label1.Text = i.ToString();
Application.DoEvents();
System.Threading.Thread.Sleep(1000);
}