I would like to do the following:
Create a class that inherits from a usercontrol. Then add a control to the
designer Call this new class ClassA.
Many controls I need will start off like this so I'd like to create all
controls form now on from this base control.
So, for example, I inherit from this base control and add the further
controls required to form this part of my UI. Call this ClassB
However, when I try and drop the final control (ClassB) onto a form none of
the controls added after inheriting from ClassA are visible.
Why is this and is what I'm doing not possible?
The idea behind this is other people can create controls for my application
but by inhriting from ClassB I will force them to give some basic
functionality that I have defined in ClassA. I know I can give them an
interface that they have to implement but this doesnt provide them with all
the code that must also be present. Otherwise I must just give them ClassA
uncompiled and **ask** them not to change any of the code found there.
Is this making any sense?
Cheers,
elziko