I want to enable all controls on a Panel. I can loop through the Panel like below. This doesn't touch all the components though, just the top level ones. How do I do this? (This is not the answer)
private void LoopThroughAllControls(System.Windows.Forms.Panel panel)
{
for (int i = 0; i < panel.Controls.Count; i++)
{
panel.Controls[i].Enabled = true;
}
}
ToolStrip
code that adds ToolStripButton
items:
this.toolStripContractor.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsbContractor_AddFile,
this.tsbContractor_View,
this.tsbContractor_Delete});