Usercontrol ControlContainer

  • Thread starter Thread starter Meelis
  • Start date Start date
M

Meelis

Hi

When i create UserControl in VB.NET 2005, how i can enable ControlContainer?
In vb6 was a property named ControContainer, how can i enable it in VB.NET?



Best regards;
Meelis
 
Meelis said:
When i create UserControl in VB.NET 2005, how i can enable
ControlContainer?
In vb6 was a property named ControContainer, how can i enable it in
VB.NET?

Make your class inherit from the 'ContainerControl' class.
 
HI

Yeah i created my own class, inherated from 'ControlContainer' but....
when i want to "pre-design" this class, for example add buttons to it, then
after compile
i can't see this controls anymore when i put this usercontol to my form.


Meelis
 
Back
Top