468,505 Members | 1,569 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

"abstract" error with User Controls (inherited)

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

Nov 18 '05 #1
2 1266
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 acommon 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. Pleasecorrect 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

.

Nov 18 '05 #2
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
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

51 posts views Thread by Noam Raphael | last post: by
5 posts views Thread by Lou Pecora | last post: by
8 posts views Thread by Asfand Yar Qazi | last post: by
4 posts views Thread by J.M. | last post: by
reply views Thread by mailforpr | last post: by
3 posts views Thread by Lord0 | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.