private void btnOk_Click(object sender, EventArgs e) { FrmMemory f = new FrmMemory(); f.Show(); this.Hide(); timer1.Stop(); }
private void menuItem3_Click(object sender, EventArgs e) { DialogResult r; r = MessageBox.Show("Nếu trở về trang chủ bây giờ, bạn sẽ phải chơi lại từ đầu, bạn chắc chắn chứ?", "Xác nhận", MessageBoxButtons.YesNo); if (r == DialogResult.Yes) { FrmMemory f = new FrmMemory(); f.Show(); this.Hide(); } }
private void timer1_Tick(object sender, EventArgs e) { progressBar1.Minimum = 0; progressBar1.Maximum = 8800; progressBar1.Step = 300; lblPhanTram.Text = x.ToString(); progressBar1.PerformStep(); if (x == 100) { timer1.Stop(); FrmMemory f = new FrmMemory(); btnOk.Enabled = true; btnOk.BackColor = Color.Red; } x = x + 3; }
private void timer1_Tick(object sender, EventArgs e) { progressBar1.Minimum = 300; progressBar1.Maximum = 10000; progressBar1.Step = 100; lblPhanTram.Text = x.ToString(); progressBar1.PerformStep(); if (x == 101) { timer1.Stop(); FrmMemory f = new FrmMemory(); f.Show(); this.Hide(); } x = x + 1; }