How to resolve VS2010 Windows Form Designer issue (base class could not be loaded)

前端 未结 8 2123
天命终不由人
天命终不由人 2021-01-01 11:16

I have recently been getting an error in the Windows Forms designer of VS2010SP1 when using inherited UserControls.

The error is

The designer

相关标签:
8条回答
  • 2021-01-01 12:08

    To add to this extensive list of issues that could cause this error, it seems that inheriting from a generic type or abstract class can screw the designer.

    0 讨论(0)
  • 2021-01-01 12:10

    I would suggest putting your base class in a separate project. As you obviously know, the problem is that VS is losing track of some meta information, which you can get it to find by quitting and rebuilding. If the base class is in a separate project, a clean/rebuild is more likely to bring it back up to date.

    0 讨论(0)
提交回复
热议问题