private void timer1_Tick(object sender, EventArgs e) { if (progressBar1.Value < 100) { progressBar1.Value += 10; } else if (progressBar1.Value >= 100) { this.Hide(); Infos inf = new Infos(); inf.Show(); timer1.Enabled = false; } else { } }