private void timer1_Tick(object sender, EventArgs e) { second = second + 1; label6.Text = second.ToString(); if (second >= 15) { timer1.Stop(); //MessageBox.Show(null, "Alert", "Time", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Hide(); challenge_over cho = new challenge_over(); cho.Show(); } }
public void universal(string ansselect) { if (p == 6) { this.Hide(); challenge_over cho = new challenge_over(); cho.Show(); } if (ansselect.Equals(ansfromdb)) { MessageBox.Show(null, "Superb you can ! ", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); qid++; displayquestion(qid); l1: Random r = new Random(); int s = r.Next(1, 8); bool c = search(x, s); if (c == true) { goto l1; } else { p++; bunifuGauge1.Value = p; qid = s; x[p] = qid; displayquestion(qid); } } else { //MessageBox.Show("Challenge Over"); this.Hide(); challenge_over cho = new challenge_over(); cho.Show(); } }