private void timer1_Tick(object sender, EventArgs e) { int b = Environment.TickCount; if ((b - time) >= 1000) { timer1.Enabled = false; progressBar1.Visible = false; progressBar1.Value = 0; if (!fba2) { //fba.Close(); fba = new Fba(); fba.MdiParent = this; fba.Show(); } else { } } else { //progressBar1.Step += 200; if (progressBar1.Value + 150 < progressBar1.Maximum) { progressBar1.Value += 150; } else { progressBar1.Value = 0; } } }
private void button4_Click(object sender, EventArgs e) { Principal.yaabriconstraint = false; Fba fba = new Fba(); fba.MdiParent = Principal.ActiveForm; fba.Show(); Close(); }