海量资源,尽在掌握
progressBar1.Value = 0; //清空进度条 progressBar1.Maximum = 100; // 设置进度条的范围最大值 for (int i = 0; i < 100; i++) { progressBar1.Value += 1; Thread.Sleep(50); }
本文摘自 :https://blog.51cto.com/u