-
Container Control
Hello,
I want to make a usercontrol and I need to put some controls inside it. But this controls have to be added on design mode by the programmer. In VB 6.0 there were a property named ControlContainer and the controls added by the user were put on a Controls collection.
Do you know how to build this kind of feature.
Please help me, I'm getting crazy.
-
How about inheriting System.Windows.Forms.ContainerControl?
-
I've tried it but itmakes an error because UserControl inherits ContainerControl and it is implicit to mine.
-
If you put all the constituent controls on your usercontrol at runtime, you could remove the usercontrol class, and add another class that inherits the containercontrol.
I don't know if it will work, but you could give it a try.