I have following class structure:
public partial class SickForm<T> : MyForm where T : class {}
public class MyForm : Form, ExternalAssemblyNamespace.ISomething {}
After opening MyForm
in designer, everything loads properly. But after opening SickForm
in designer, I'm facing this error:
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:
SickForm --- The base class 'MyForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
How to fix this ? This problem occurs while I'm using VS2010 express. In VS2008 express it works ok.