Concrete Implementation of Generic Form Not Working in Designer

Posted by Dov on Stack Overflow See other posts from Stack Overflow or by Dov
Published on 2009-05-15T17:30:37Z Indexed on 2010/03/09 7:06 UTC
Read the original article Hit count: 343

I have a base class, defined as below (I'm also using DevExpress components):

public abstract partial class BaseFormClass<R> : XtraForm where R : DataRow
{
  ...
}

Contrary to what I've read from elsewhere, I'm still able to design this class. I didn't have to create a concrete class from it to do so. But, when I create a concrete class descended from it (as below), that class won't work in the designer.

public partial class ConcreteFormClass : BaseFormClass<StronglyTypedRow>
{
  ...
}

I get this message:

The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: ConcreteFormClass --- The base class 'BaseFormClass' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.

Has anyone seen this before? Any sort of known workaround?

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2005