Remove GenerateMember and Modifiers Properties in Designer
问题 I created a Button descendant where I hide all the properties I don't use. I do it like this: [Browsable(false)] [Bindable(false)] [EditorBrowsable(EditorBrowsableState.Never)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Obsolete("", true)] public new Boolean AllowDrop { get; set; } Most properties get correctly hidden and cannot be used. However there are two properties that I cannot get rid of. Is there a way to also remove GenerateMember and Modifiers in the