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 Designer?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…