"abstract" error with User Controls (inherited)

B

Ben Fidge

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 week or so now. I've no
idea what I've changed to cause this.

Please help!

Ben
 
B

Ben Fidge

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.
 
B

bloomfield

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top