Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on inheriting from a class control
Message
De
03/05/2003 23:25:24
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Question on inheriting from a class control
Divers
Thread ID:
00784626
Message ID:
00784626
Vues:
61
Hi, all...

I've created a label class in C#, where I've set a font that I always want to use [Arial 9].

I want to drop it on all forms, and then if I ever need to change it on all the forms, I just need to go modify the class.

This 'works', up to a point. I might start with Arial 9. But then if I change another property on each label [the text/caption], and then I'll go and change the font in the label class [to Arial 10], the form continues to show Arial 9, until I go to the font property on the form, right click, and select 'RESET'

It seems that even if I change another property [text], the default font should stay the same as what's in my base class.

Is there something I'm missing? Do I need to do something else in the base class [like set the font property to protected or something?]

Thanks,
Kevin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform