private void btn_anterior_Click(object sender, EventArgs e) { FrmRegistro atras = new FrmRegistro(); atras.Show(); this.Hide(); }
private void timer1_Tick(object sender, EventArgs e) { sg = sg - 5; lbl_conteo.Text = sg.ToString(); lbl_esperar.Text = lbl_esperar.Text; progressBar1.Value = sg; // progressBar1.Visible = false; if (sg == 0) { timer1.Stop(); cn.Open(); SqlCommand cmd = new SqlCommand("SELECT m_id FROM Miembros ", cn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); if (dt.Rows.Count > 0) { FrmLogin entrada = new FrmLogin(); entrada.Show(); this.Hide(); cn.Close(); } else { FrmRegistro entrada = new FrmRegistro(); entrada.Show(); this.Hide(); cn.Close(); } } // if (cargar) { lbl_esperar.ForeColor = Color.Firebrick; cargar = false; } else { lbl_esperar.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(2))))); cargar = true; } }