private void timer1_Tick(object sender, EventArgs e) { if (progressBar1.Value < 100) { progressBar1.Value = progressBar1.Value + 2; } else { timer1.Enabled = false; Inicio inicio = new Inicio(); this.Hide(); inicio.ShowDialog(); } }