M
Mark Essex
I am trying to build an interface that requires the developer to use the
OVERRIDE option. I looked at abstract classes, but seemed to have a couple
of problems:
1. If you do this in a form, it appears that I can't get the designer to
display the derived forms
2. It forces the override in the derived form (form A), but if another form
(form B) derives from this derived form (form A), it isn't forced to
override the method.
Basically, I have the following:
Form A -> Form B -> Form C -> Form D
I want Form D to HAVE to implement a method called RefreshScreen() with the
override option.
Any thoughts on how I can do this? Form A is the base form that has a
RefreshScreen() method in it.
I have also tried to build an interface, and it requires the developer to
implement the RefreshScreen() method, but they don't have to OVERRIDE it,
and if they don't, then one of the base forms RefreshScreen() method gets
called.
Mark
OVERRIDE option. I looked at abstract classes, but seemed to have a couple
of problems:
1. If you do this in a form, it appears that I can't get the designer to
display the derived forms
2. It forces the override in the derived form (form A), but if another form
(form B) derives from this derived form (form A), it isn't forced to
override the method.
Basically, I have the following:
Form A -> Form B -> Form C -> Form D
I want Form D to HAVE to implement a method called RefreshScreen() with the
override option.
Any thoughts on how I can do this? Form A is the base form that has a
RefreshScreen() method in it.
I have also tried to build an interface, and it requires the developer to
implement the RefreshScreen() method, but they don't have to OVERRIDE it,
and if they don't, then one of the base forms RefreshScreen() method gets
called.
Mark