ProgressMeter pm = new ProgressMeter();
pm.Start("正在执行...");
pm.SetLimit(100);
for (int i = 0; i <= 100; i++)
{
System.Threading.Thread.Sleep(100);//为了模拟效果,做的延时
pm.MeterProgress();
}
pm.Stop();