private void timer1_Tick(object sender, EventArgs e) { progressBar1.Value += 1; if (progressBar1.Value==100) { timer1.Enabled = false; } } private void Form1_Load(object sender, EventArgs e) { timer1.Interval = 30; }