using OakLeaf.MM.Main.Web.UI.WebControls; namespace A4U.CommonControls.OurClasses { /// <summary> /// Summary description for Class1. /// </summary> public class A4ULabel : OakLeaf.MM.Main.Web.UI.WebControls.mmLabel { public string MyCustomProperty { get { return this._myCustomProperty; } set { this._myCustomProperty = value; } } private string _myCustomProperty; public A4ULabel() { // // how do i override the text value onload of the object // this.MyCustomProperty = "Override the value"; } } }If you don't want this property visible in the VS .NET Property Window, you can use set the Browsable attribute to false:
[Browsable(false)] public string MyCustomProperty { get { return this._myCustomProperty; } set { this._myCustomProperty = value; } } private string _myCustomProperty;If you DO want the property visible in the VS .NET Property Window, you can set the Browsable attribute to true, and use other attributes to specify the Description, and Default Value of the property:
[Browsable(true), Category("Behavior"), Description("This is a description of my custom property"), DefaultValue("This is the default value")] public string MyCustomProperty { get { return this._myCustomProperty; } set { this._myCustomProperty = value; } } private string _myCustomProperty;Regards,