pgb_All.Properties.Minimum = 0;
pgb_All.Properties.Maximum = (int)_SumQty;
pgb_All.Properties.Step = 1;
pgb_All.Position = (int)_Qty; //当前进度
pgb_All.Properties.ShowTitle = true; //显示百分比
//动态演示
public void SetBarValue(int barValue)
{
for (int i = 0; i < barValue; i++)
{
Application.DoEvents();
pgb_All.PerformStep();
System.Threading.Thread.Sleep(15);
}
}