c# winform : override default properties in designer from custom control
问题 Here is the situation. I made a custom button control : public partial class EButton : Control, IButtonControl This control contains a button. I use getters/setters to edit his properties in designer, like this : [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [Browsable(true)] public UIButton Button { get { return EBtn; } set { EBtn = value; } } Now, I can access all of my button's properties in the designer. My problem is that no matter what I define, this is