M
Michael Rodriguez
How can you subclass a control and override just a sub-property like
Font.Size?
I was trying to do something like this:
namespace Compeat.Common.Controls
{
public class MyTextBox : TextBox
{
public MyTextBox()
{
this.Font.Size = 12;
}
[DefaultValue(12)]
public override float Font.Size
{
get { return base.Font.Size; }
set { base.Font.Size = value; }
}
}
}
TIA,
Mike Rodriguez
Font.Size?
I was trying to do something like this:
namespace Compeat.Common.Controls
{
public class MyTextBox : TextBox
{
public MyTextBox()
{
this.Font.Size = 12;
}
[DefaultValue(12)]
public override float Font.Size
{
get { return base.Font.Size; }
set { base.Font.Size = value; }
}
}
}
TIA,
Mike Rodriguez