M
Magne Ryholt
Suppose a class derived e.g. from System.Windows.Forms.TextBox with some
additional functionalities.
In my derived class I want (for some odd reason) to not beeing able to set
the Text property in design-time, this can be done by setting the
BrowsableAttribute to false.
How to achieve this ? Do I have to override the Text property with
[Browsable(false)] as attribute ? if so, then I "lose" other attributes set
for the base class's property (perhaps not an issue in this case).
My general question is: Is it possible to change an attribute defined in a
base class (supposing AttributeUsageAttribute, property Inherited is set to
true) ?
additional functionalities.
In my derived class I want (for some odd reason) to not beeing able to set
the Text property in design-time, this can be done by setting the
BrowsableAttribute to false.
How to achieve this ? Do I have to override the Text property with
[Browsable(false)] as attribute ? if so, then I "lose" other attributes set
for the base class's property (perhaps not an issue in this case).
My general question is: Is it possible to change an attribute defined in a
base class (supposing AttributeUsageAttribute, property Inherited is set to
true) ?