A
Anurag Agarwal
I am creating a control in which I inherit from Label
public class WZFormLabel : Label
I would like to hide certain properties like Font, TextAlign etc. I
have tried the following code, but it throws an error
[Browsable(false)]
public override Font Font
{
get
{
return this.Font;
}
set
{
this.Font = value;
}
}
What am I doing wrong ?
Thanks
public class WZFormLabel : Label
I would like to hide certain properties like Font, TextAlign etc. I
have tried the following code, but it throws an error
[Browsable(false)]
public override Font Font
{
get
{
return this.Font;
}
set
{
this.Font = value;
}
}
What am I doing wrong ?
Thanks