>public class MyTextBox : TextBox >{ > private string m_MyProperty; > > public MyTextBox > { > this.m_MyProperty = ""; > } > > [DefaultValue("")] > public string MyProperty > { > get {return this.m_MyProperty;} > set {this.m_MyProperty = value;} > } > [DefaultValue(typeof(Color), "Window")] > public override Color BackColor > { > get {return base.BackColor;} > set {base.BackColor = value;} > } > [DefaultValue(typeof(Color), "WindowText")] > public override Color ForeColor > { > get {return base.ForeColor;} > set {base.ForeColor= value;} > } >} >>Note that the BackColor and ForeColor properties are overridden. This all works just fine, but where I'm having a problem is with some of the properties in ComboBoxes that are not virtual properties and therefore cannot be overridden ... such as the DropDownStyle, DropDownWidth and several others. Does anybody know how to set up a DefaultValue for these?