Home All Groups Group Topic Archive Search About

Usercontrol ControlContainer

Author
18 Mar 2006 7:54 PM
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

Author
18 Mar 2006 9:15 PM
Herfried K. Wagner [MVP]
"Meelis" <m**@hot.ee> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
19 Mar 2006 8:08 AM
Meelis
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





Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uZN8%23DtSGHA.4956@TK2MSFTNGP09.phx.gbl...
> "Meelis" <m**@hot.ee> schrieb:
> > 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.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>