private void adminSettingToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); auth = new AuthanticationForm(); auth.Show(); }
private void MainApps_KeyDown(object sender, KeyEventArgs e) { if(e.Control && e.KeyCode.ToString().ToUpper() == "A") { if (auth != null && !auth.IsDisposed) { //Daha önce form yaratıldıysa //Exception'a düşüyor(du) ! auth.Show(); } else { auth = new AuthanticationForm(); auth.Show(); this.Hide(); } } }