Barry,
Unfortunately, since the DefaultValue attribute is inherited, you can't
remove it from the metadata. However, you can place the DefaultValue
attribute on the derived class, and override what the default value should
be.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Barry" <qw****@uiop.com> wrote in message
news:OS****************@TK2MSFTNGP15.phx.gbl...
I have written a descendant of CustomValidator, but I don't want it to have
a default value for ForeColor. Is there any way to remove the
DefaultValueAttribute from the descendant's ForeColor?