I\'ve got some code that will generically get all Controls in a form and put them in a list. Here\'s some of the code:
private List Ge
ToolStripControlHost might contain a Control:
if (c is ToolStrip)
foreach (ToolStripItem item in EnumerateTree(c, "Items"))
if (item is ToolStripControlHost)
AddControlsToList(
new Control[] { ((ToolStripControlHost)item).Control },
controlList);
...that's if you change argument 1 to type IEnumerable
and write your own EnumerateTree function (I think it's great to have one good generic EnumerateTree method).