Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does Visual Inheritance work in .Net?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01234107
Message ID:
01234400
Vues:
11
So, the short answer is: visual inheritance in .Net *kind of* works, but pretty much useless. :)

No, it does work, you just have to write some code in the subclass...

Bottom line, you can get to a situation where you can build your subclassed controls, get them into your toolbox, drop them on forms or other containers...and then modify your subclass to use a different color/font/etc, and have it cascade through.

But as you've seen, you have to do it the right way from the beginning, or you find yourself doing some back-peddling.

Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform