During development, from the attribute [Designer] you get the behavior "act-like-a-container". Copy paste from Help source :
[ ComVisible(true), ClassInterface(ClassInterfaceType.AutoDispatch), Designer("System.Windows.Forms.Design.ScrollableControlDesigner, " + AssemblyRef.SystemDesign) ] public class ScrollableControl : Control, IArrangedElement {
This ScrollableControlDesigner does the job. This by itself does not, but comes from the ParentControlDesigner, a constructor that allows the control to act as the parent for the child controls and gives it container-like behavior during development.
Easy to fix, you just need to use your own [Designer] attribute to select another designer. Add a link to System.Design and do this:
using System.Windows.Forms; using System.Drawing; using System.ComponentModel; using System.Windows.Forms.Design;
source share