This post picks up where the previous post left off, I will override the text property of the CustomTextBox control I created previously.
Open the extended control created in the previous post and add the following code.
/// <summary>
/// Text Property
/// </summary>
public virtual string Text
{
get
{
string o = base.Text;
//perform any additonal logic here
return o;
}
set
{
string o = value;
//perform any additonal logic here
base.Text = o;
}
}
No comments:
Post a Comment