How to disable designer in derived classes in following generations

前端 未结 2 2099
时光说笑
时光说笑 2021-02-15 16:06

In order to disable component designer in classes it is simple to add just [System.ComponentModel.DesignerCategory(\"\")] attribute to it, however it does not work for any class

2条回答
  •  情话喂你
    2021-02-15 16:56

    The reason for such behaviour is cached referenced assemblies. To solve it, remove reference to the assembly contained base server with attribute and add it again. In this case Visual Studio rebuild project and will not define default editor to derrived class.

提交回复
热议问题