this.progressBar1 = new System.WinForms.ProgressBar(); progressBar1.Maximum = 200; progressBar1.Manimum=0; progressBar1.Step=20; //使用ProgressBar控制項 protected void timer1_Tick (object sender, System.EventArgs e) { if (progressBar1.Value >= 200 ) { progressBar1.Value = 0; } progressBar1.Value += 20;//同progressBar1.PerformStep(); Console.WriteLine(progressBar1.Value.ToString() );//取得值 }
沒有留言:
張貼留言