Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does Visual Inheritance work in .Net?
Message
De
18/06/2007 17:33:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
18/06/2007 17:19:44
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
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:
01234133
Vues:
14
Calvin,

You didn't mention why you say it doesn't work. You might look however at:
public override rather than override public.

Tim

>What were you doing in Milledgeville? I went to High School there - Ga Military Colleage. We keep a small sailboat on Lake Sinclair so we are up there about every weekend.
>
>
>This code does not work. Can you tell me what I am doing wrong? Is it because this is a subclass of a subclass?
>
> public partial class wrLabel : OakLeaf.MM.Main.Windows.Forms.mmLabel
> {
>
>
> override public Font Font
> {
> get { return base.Font; }
> set { base.Font = value; }
> }
>
> public wrLabel()
> {
> InitializeComponent();
> base.Font = new Font("Arial", 8); // referencing System.Drawing.
> }
> }
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform