private void btnLogin_Click(object sender, EventArgs e) { ForceToClose(); MainmenuLogin hln = new MainmenuLogin(); this.Hide(); hln.ShowDialog(); this.Close(); }
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(); } }