dev的progressBarControl使用


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);
	}
}

猜你喜欢

转载自zheyiw.iteye.com/blog/2242801
Dev