private void cmdDay_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["FORM_SMT_PU_LEADTIME"]; if (fc != null) { fc.Show(); this.Hide(); } else { FORM_SMT_PU_LEADTIME f = new FORM_SMT_PU_LEADTIME(); f.Show(); this.Hide(); } }