初始值Visible = false;
讓progressBar1出現時:
progressBar1.Visible = true;
progressBar1.Style = ProgressBarStyle.Marquee;//走馬燈
讓它消失時:
progressBar1.Visible = false;
progressBar1.Style = ProgressBarStyle.Blocks; //通過在 System.Windows.Forms.ProgressBar 中增加分段塊的數量來指示進度。設定此項的目的是讓走馬燈重新開始而不是從上次的進度前進