private void btnLogin_Click(object sender, EventArgs e) { TennicLogin tcl = new TennicLogin(); this.Hide(); tcl.ShowDialog(); this.Close(); }
private void Tennic_MainMenu_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.F1) { this.Close(); } else if (e.KeyData == Keys.F12) { TennicLogin tcl = new TennicLogin(); this.Hide(); tcl.ShowDialog(); this.Close(); } }