Does anyone have idea to replace the 'Me.Controls.Add()' to 'Me.Controls.AddRange()' of the following code. I mean is it possible directly add the 'top' into the 'Me.Controls.AddRange()'
Code:
dim focus as ToolPanel
dim panels as new ArrayList
dim top as new ArrayList
....................
For Each focus In panels.ToArray
focus.Minimize(DockStyle.Top)
top.Add(focus)
Next
....................
For Each focus In top.ToArray : Me.Controls.Add(focus) : Next