0
이 코드에서 원하는 모든 단계 레이블에 해당 단계 번호를 표시하십시오. 내 코드에서 레이블의 마지막 번호 만 표시하십시오!루프의 모든 단계에서 label.text를 변경하십시오.
내가 doevent (함께 할 수 있습니다)하지만 시간이 여전히 Application.DoEvents()의 행동, 당신의 뜻을 수행하는 동안 카운터가 라벨을 업데이트 할 가정 문제
enter code here
private void button1_Click(object sender, EventArgs e)
{
int i = 0;
while (i<100)
{
i++;
label1.Text = string.Format("Step is :{0}", i);
Application.DoEvents();
label1.Invalidate();
System.Threading.Thread.Sleep(1000);
}
}