Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to subclass control?
Message
De
20/02/2007 07:08:16
 
 
À
17/02/2007 00:43:23
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01184867
Message ID:
01197211
Vues:
23
    [DefaultValue(typeof(Color), "Window")]
    public override Color BackColor
    {
        get {return base.BackColor;}
        set {base.BackColor = value;}
    }
    [DefaultValue(typeof(Color), "WindowText")]
    public override Color ForeColor
    {
        get {return base.ForeColor;}
        set {base.ForeColor= value;}
    }
In this case, the colors are assigned as a kind of "named" values.
How can I assign RGB values?
Holger Vorberg
Germany
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform