首页 > 代码库 > progressBar走马灯设置

progressBar走马灯设置

 

初始值Visible = false;

让progressBar1出现时:

progressBar1.Visible = true;
progressBar1.Style = ProgressBarStyle.Marquee;//走马灯

让它消失时:

progressBar1.Visible = false;
progressBar1.Style = ProgressBarStyle.Blocks; //通过在 System.Windows.Forms.ProgressBar 中增加分段块的数量来指示进度。设置此项的目的是让走马灯重新开始而不是从上次的进度前进