111,126
社区成员
发帖
与我相关
我的任务
分享
测试例子
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 50; i++)
{
label1.Text = i.ToString();
for (int j = 0; j < 550; j++)
{
j++;
textBox1.Text=(i*j).ToString();
Application.DoEvents();
}
}
}

for(int i=0; i<list.count; i++){
label.text=list[i];
for(...){
//这个for循环执行时间长
Application.DoEvents();
}
}