Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extending a native property
Message
From
17/12/2003 01:07:58
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00859555
Message ID:
00859781
Views:
15
>i>>>For some reason, I was associating the "override" kewyord strictly with methods, and hadn't thought of applying it to properties (duh!).<

Well, I never have applied it to properties either, but it dawned on me (as Rick also said) that properties are really just methods, so I figured it'd be no problem to override them.

>>However, the property I was trying to work with is the Visible property, and it appears that it wasn't defined Virtual in the control base class<

And as Dave replied, you can get around that by overriding the OnVisibleChanged(), which I hadn't thought of either. Learn something new everyday. =)

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform