Example #1
0
        private void button7_Click_1(object sender, EventArgs e)
        {
            this.Hide();

            Loging lggng = new Loging();

            lggng.Show();
        }
Example #2
0
 //función para cerrar sesión
 public void CerrarSesion(object v)
 {
     if (MessageBox.Show("¿Cerrar sesión?", "Salir",
                         MessageBoxButtons.YesNo, MessageBoxIcon.Question,
                         MessageBoxDefaultButton.Button1) == System.Windows.Forms.DialogResult.Yes)
     {
         Form ventana = v as Form;
         ventana.Hide();
         Loging lggng = new Loging();
         lggng.Show();
     }
 }