Currently I have most of my form\'s controls disabled at launch because you cannot use them until a file is loaded. However, once the file is loaded the controls should beco
Recursion
private void enableControls(Control.ControlCollection Controls)
{
foreach (Control c in Controls)
{
c.Enabled = true;
if (c is MenuStrip)
{
foreach(var item in ((MenuStrip)c).Items)
{
item.Enabled = true;
}
}
if (c.ControlCollection.Count > 0)
enableControls(c.Controls);
}
}
Edit
Should have been checking the control Collection count instead of HasControls Which is Webcontrols