Is there a layout panel that I can display my controls in the two manners described?
FlowLayoutPanel
is the panel you are looking for, the problem you have is because your banner
and indicator
are not associated. so FlowLayoutPanel
treat each of them as an individual control, hence the overflow you have observed.
As I pointed out in my comments, you need an extra user control to combine Banner
and all its possible Indicators
, and add this new control into the FlowLayoutPanel
instead.
Also, easily switch between the two at the users request (by means of a checkbox/button that would redraw/relayout the controls)?
When you done the first part, you can then switch layout by setting FlowLayoutPanel
's FlowDirection
to TopDown
or LeftToRight
(with WrapContents
set as False
).