|
-
Jun 25th, 2002, 02:47 AM
#1
Thread Starter
Member
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.
-
Jun 25th, 2002, 03:47 AM
#2
How about inheriting System.Windows.Forms.ContainerControl?
-
Jun 25th, 2002, 05:23 AM
#3
Thread Starter
Member
I've tried it but itmakes an error because UserControl inherits ContainerControl and it is implicit to mine.
-
Jun 25th, 2002, 05:43 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|