I wrote a class in c# which inherits TextBox and now I want to add a virtual property to it:
public virtual Color WatermarkColor
{
private get { return _watermarkColor; }
set
{
_watermarkColor = value;
OnEnter(null);
OnLeave(null);
}
}
but this error occurred:
Error 1 'xXx.TextBoxPlus.WaterMark.get' is a new virtual member in sealed class 'xXx.TextBoxPlus'