Monday, March 26, 2012

OK, answered my own question

My base class was implementing an abstract method,
forcing me to declare the whole class as abstract too.
VS.NET didn't like this for some reason, even though when
running the app, it appeared to work fine.

>--Original Message--
>I've got a couple of UserControls that are derived from
a
>common base-class. When I try to open them in the IDE,
>the following error is displayed in a dialog window:
>"The file failed to load in the Web Form designer.
Please
>correct the following error, then load it again: Type
>Abstract"
>This has only just started happening, as I've had the
>inheritance working for a good w or so now. I've no
>idea what I've changed to cause this.
>Please help!
>Ben
>.
>Yes this is the reason. I find this very annoying. The only solution is
to make the method virtual and to remove the abstract from the class.
Does anybody know of a better approach?
____________________
www.bloomfield.as.ro

0 comments:

Post a Comment