"scorpion53061" <(E-Mail Removed)> schrieb
> this is great code but it does not address the problem of the
> defaultbackcolor (read only) property I need to change.
>
> Does anyone have a suggestion on how to change this? I tried
> "Shadows" and it didnt work for some reason.
In addition to Herfried's reply: You cannot override it because a shared
property is tied to the type used to reference or to resolve the call. You
might Shadow the shared property in a derived class, but it would only be
called if you own code uses the type of your derived class. All the code
that refers to Control.DefaultBackColor still calls Control.DefaultBackColor
because that is the type used in the base classes - they don't know your
class.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html