private void cmdReporting_Click(object sender, EventArgs e) { reporting frm = null; if ((frm = (reporting)openCheck(typeof(reporting))) == null) { frm = new reporting(); frm.Show(); } else frm.Select(); }
public static Form openCheck(Type FormType) { foreach (Form OpenForm in Application.OpenForms) { if (OpenForm.GetType() == FormType) return OpenForm; } return null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)