J
J.Marsch
I am trying to create a base form that all of our application's forms will
inherit from. I would like to mark it "abstract", but if I do, I get an
error from the form designer when I try to design forms that are
(non-abstract) children of the base form. The designer complains about not
being able to instance the base class (though I am designing the child
class). Now, I know that I could just use virtual methods and properties
instead of abstracts, and I could give my base form a private constructor to
keep people from instancing it directly.
However, I could have sworn that I came across some way of making the form
designer work with an abstract form. I thought that it had something to do
with placing an attribute in the child class, but I just can't seem to
remember what the attribute was (or if it's even real). Any hints?
-- Jeremy
inherit from. I would like to mark it "abstract", but if I do, I get an
error from the form designer when I try to design forms that are
(non-abstract) children of the base form. The designer complains about not
being able to instance the base class (though I am designing the child
class). Now, I know that I could just use virtual methods and properties
instead of abstracts, and I could give my base form a private constructor to
keep people from instancing it directly.
However, I could have sworn that I came across some way of making the form
designer work with an abstract form. I thought that it had something to do
with placing an attribute in the child class, but I just can't seem to
remember what the attribute was (or if it's even real). Any hints?
-- Jeremy