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