devのprogressBarControl使用

506 ワード

詳細


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