I got this code in a user control:
[DefaultValue(typeof(Color), \"Red\")] public Color MyColor { get; set; }
How can I change MyColor
MyColor
Are you initializing MyColor in your constructor?
The DefaultValue attribute does not actually set any values. It simply instructs the designer for which value to not generate code and will also show the default value non-bold to reflect this.
DefaultValue