C# Windows Form Application project. I have a menu form which has buttons to load other already created forms.
private void cmdReporting_Click(object sender, EventArgs e)
reporting frm = null;
if ((frm = (reporting)openCheck(typeof(reporting))) == null)
frm = new reporting();
The form it is trying to load is named reporting. This code is identical to WORKING code that loads other forms. This is the only one out of 5 that won't load. It does not throw an error either.
Is there a setting I'm missing in the GUI?
Added Code for openCheck method
public static Form openCheck(Type FormType)
foreach (Form OpenForm in Application.OpenForms)
if (OpenForm.GetType() == FormType)
Edited 25-Aug-12 9:31am
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)