Y
YYZ
I swear I've done my research, and now I was just hoping someone could
explain this to me.
I've got a base class (usercontrol) that I am using just as an
interface. Meaning, I've defined several MustOverride subs in there,
and also a public property.
I'm going to inherit a bunch of usercontrols from this one superclass
(terminology correct?) and then they all have to make sure they can
respond to that set of functions that I've defined. Sounds good to me.
However, I keep getting the error of "The designer must create an
instance of type 'EncLO.ucLoanSuper' but it cannot because the type is
declared as abstract.
Right, I've seen the advice of wrapping my super class definition in
#If DEBUG.... However, that defeats the purpose, right? I mean, I can
actually declare my class normally (without the MustInherit) and then
just make Overridable subs instead of MustOverride subs. But that
won't FORCE me to implement all of those subs in all the child
usercontrols. It doesn't do me any good to do this only at runtime,
because by that time it is too late.
Am I making sense? Any other solution that anyone can think of to
force the usercontrols that inherit from my superclass to implement
that set of subs?
Matt
explain this to me.
I've got a base class (usercontrol) that I am using just as an
interface. Meaning, I've defined several MustOverride subs in there,
and also a public property.
I'm going to inherit a bunch of usercontrols from this one superclass
(terminology correct?) and then they all have to make sure they can
respond to that set of functions that I've defined. Sounds good to me.
However, I keep getting the error of "The designer must create an
instance of type 'EncLO.ucLoanSuper' but it cannot because the type is
declared as abstract.
Right, I've seen the advice of wrapping my super class definition in
#If DEBUG.... However, that defeats the purpose, right? I mean, I can
actually declare my class normally (without the MustInherit) and then
just make Overridable subs instead of MustOverride subs. But that
won't FORCE me to implement all of those subs in all the child
usercontrols. It doesn't do me any good to do this only at runtime,
because by that time it is too late.
Am I making sense? Any other solution that anyone can think of to
force the usercontrols that inherit from my superclass to implement
that set of subs?
Matt