Hi all,
I want to define a user control (called BaseUserControl) in one
assembly, and define another user control (called derivedUserControl)
in another assembly which derived from BaseUserControl.
I achieve to do this by doing add/new element/derived user control in
my second assembly.
But my problem is the following :
I first write a lot of code for BaseUserControl, then I create
derivedUserControl and write a lot of code for it. And then I want to
change something in BaseUserControl (add a checkBox in it, or a new
function, something I had forgotten at the beginning).
How can I then have derivedUserControl being updated (that is to say
containing the new checkbox for example) ???
For the moment the only way I see is to suppress derivedUserControl
and recreate it from add/new element/derived user control, but this is
very anoying, because I lost all the code I had written for
derivedUserControl.
Is there a better way to do this ??
Another question: I would like my BaseUserControl to be abstract (to
force people that will write derived UserControls to implement some
functionalities).
But when I define this class as abstract, I can not create a new
derivedUserControl (in fact I can, but I have an error from the
designer, and it is not possible to see my new control in the
designer).
Is it possible to do some abstract user controls ?? Should I use
something else, or use them in another way ??
Thanks for any help,
Verane.