Griffiths, Ian schrieb:
But UserControl inherits *that* infrastructure from Control... So this
is doesn't really help you in deciding between a custom control and a
user control - custom control can contain other controls too. (So can
any control actually. The Forms Designer prevents you from setting up
some of the more stupid containment relationships - for example, it
won't let you drag a control inside of a Button. But you can add
children to a Button control in code.)
Yes, you are right, I was confused by UserControl being derived from
ContainerControl. Oh man.
Fabian