日期:2014-05-17 浏览次数:21255 次
//...
progressBar.Value = 0;
progressBar.Maximum = data.Rows.Count;
for (int i = 0; i < data.Rows.Count; i++)
{
//....
progressBar.Value++;
labMsg.Text = "已经执行..." + progressBar.Value + " / " + progressBar.Maximum + "";
}
//...