1
프로그램이 데이터로드를 순환하고 텍스트를 넣으려고하지만 어떤 이유로 인해 완료됩니다. 로딩하는 동안 반대로 로딩. 내 toolStripProgressBar1
그러나 제대로 업데이트됩니다. 나는 무엇을 잘못하고있을 것인가?C# statusstrip toolstripstatuslabel 프로세스가 끝난 후 업데이트
toolStripStatusLabel1.Text = "Acquiringdata for: " + name;
toolStripProgressBar1.Minimum = 0;
toolStripProgressBar1.Value = 1;
toolStripProgressBar1.Step = 1;
for (int i = 8; i < data.Count; i++)
{
string newstr = data[i];
string date = newstr.Substring(0, newstr.IndexOf(","));
newstr = newstr.Substring(newstr.IndexOf(",") + 1);
string close = newstr.Substring(0, newstr.IndexOf(","));
newstr = newstr.Substring(newstr.IndexOf(",") + 1);
string high = newstr.Substring(0, newstr.IndexOf(","));
newstr = newstr.Substring(newstr.IndexOf(",") + 1);
string low = newstr.Substring(0, newstr.IndexOf(","));
newstr = newstr.Substring(newstr.IndexOf(",") + 1);
string open = newstr.Substring(0, newstr.IndexOf(","));
newstr = newstr.Substring(newstr.IndexOf(",") + 1);
string volume = newstr.Substring(0);
DataPoint dp = new DataPoint(date, close, high, low, open, volume);
dataPoints.Add(dp);
richTextBox1.Text += "New DataPoint Added: \n";
toolStripProgressBar1.PerformStep();
toolStripStatusLabel2.Text = (double)(i/(data.Count - 8))*100 + "%";
}
'toolStripStatusLabel1.Text = "Acquiringdata의 첫 번째 행을 의미합니다 :"+ name; "은'Label Text '를 업데이트하지 않습니까? – Shaharyar