关于进度条的问题
private void Form3_Load(object sender, EventArgs e){
this.progressBar1.Enabled = true;
this.progressBar1.Value = 0;
this.progressBar1.Maximum = 100;
this.progressBar1.Minimum = 0;
this.progressBar1.Step = 50;
this.timer1.Enabled = true;
this.timer1.Start();
}
private void timer1_Tick_1(object sender, EventArgs e)
{
if (this.progressBar1.Value< 100)
this.progressBar1.Value = this.progressBar1.Value + 20;
if (this.progressBar1.Value == 100)
{
timer1.Enabled = false;
Form4 form4 = new Form4();
form4.Show();
this.Hide();
}
}
}
为什么进度条还没有读完,就show form4 了
应当怎么改