How do I create a custom control with a sub-panel that accepts other controls at designtime? [duplicate]
This question already has an answer here: Let components dropped on my control in the IDE become children of my control 1 answer I have written a custom control, that has several sub panels. I want these sub panels to accept any additional controls dropped on them at design time. Unfortunately any control that gets dropped at design time ends up on my custom control, not on the panels. This shows in particular if I try to drop a label: The label's blue dots are shown, but it's caption isn't and if I deselect the label, it is no longer visible at all. simplified code (only one sub panel): type