private void btnclose_Click(object sender, EventArgs e) { this.Close(); Adminhome a1 = new Adminhome(); a1.Show(); }
private void timer1_Tick(object sender, EventArgs e) { progressBar1.Value = progressBar1.Value + 5; //min value 0 max 5 if (progressBar1.Value >= 100) { timer1.Enabled = false; Adminhome a1 = new Adminhome(); a1.Show(); } }