R
Rachel Suddeth
I have a base form (Windows.Forms) that really should be abstract. There are
certain methods that must be overridden. However, if I make it abstract, I
can
not get designer support. (VS tells me " The designer must create an
instance of type
'Bloodhound.MaintBase' but it cannot because the type is declared as
abstract." )
Is there any way I can force these method to get overridden but still get
designer
support?
Failing that (as I suspect will happen), anyone have a good suggestion for
how to
make very sure that it will be immediately obvious on first run of the
program if
the programmer forgets to implement any of the methods that must be
overridden?
One is called in the constructor (to get data objects of a derived type
which are
implemented as base type objects in the base form), and the others are
called
from button click or other such events (to make server calls which must
use the
derived type data objects.) Right now, some of these might not be noticed
until some fairly thorough testing is done...
Any suggestion appreciated...
Thanks,
Rachel
______________________________________________________________
Roydan Enterprises Ltd
602 North 9th Street
Manitowoc, WI 54220-3924
1-800-236-6906
(920)-684-3688
Fax: (920)-684-3630
certain methods that must be overridden. However, if I make it abstract, I
can
not get designer support. (VS tells me " The designer must create an
instance of type
'Bloodhound.MaintBase' but it cannot because the type is declared as
abstract." )
Is there any way I can force these method to get overridden but still get
designer
support?
Failing that (as I suspect will happen), anyone have a good suggestion for
how to
make very sure that it will be immediately obvious on first run of the
program if
the programmer forgets to implement any of the methods that must be
overridden?
One is called in the constructor (to get data objects of a derived type
which are
implemented as base type objects in the base form), and the others are
called
from button click or other such events (to make server calls which must
use the
derived type data objects.) Right now, some of these might not be noticed
until some fairly thorough testing is done...
Any suggestion appreciated...
Thanks,
Rachel
______________________________________________________________
Roydan Enterprises Ltd
602 North 9th Street
Manitowoc, WI 54220-3924
1-800-236-6906
(920)-684-3688
Fax: (920)-684-3630