How to disable designer in derived classes in following generations
问题 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 classes derived from this class in any generation. E.g: [System.ComponentModel.DesignerCategory("")] public class A:ServiceBase { } //Designer is disabled here public class B:A {} //Designer is enabled here [System.ComponentModel.DesignerCategory("")] public class B:A {} //Designer is enabled here too [System.ComponentModel