//Pora regresar al menu principal private void btbehind_Click(object sender, EventArgs e) { this.Hide(); Inicio inicio = new Inicio(); inicio.Show(); this.Close(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Inicio main = new Inicio(); main.FormClosed += Form1_Closed; main.Show(); Application.Run(); }
private void btnAceptar_Click(object sender, EventArgs e) { if (this.txtUsuario.Text == "Jennifer" || this.txtContrasenia.Text == "12345") { Inicio llamar = new Inicio(); llamar.Show(); } else { MessageBox.Show("Error"); } }