Exemplo n.º 1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            ForceToClose();
            MainmenuLogin hln = new MainmenuLogin();

            this.Hide();
            hln.ShowDialog();
            this.Close();
        }
Exemplo n.º 2
0
 private void Main_Menu_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.F1)
     {
         this.Close();
     }
     else if (e.KeyData == Keys.F12)
     {
         ForceToClose();
         MainmenuLogin hln = new MainmenuLogin();
         this.Hide();
         hln.ShowDialog();
         this.Close();
     }
 }