Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Overloading CTOR
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Problem Overloading CTOR
Divers
Thread ID:
01407726
Message ID:
01407726
Vues:
105
Here's the code:
public ColumnHeader()
{
    ColumnHeader(null);
}
public ColumnHeader(ColumnHeaders Parent)
{
    InitializeComponent();
    lblCaption.Left = CAPTION_LABEL_MARGIN;
    lblCaption.Top = CAPTION_LABEL_MARGIN;

    if (Parent != null)
    {
        this.Parent = Parent;
    }
}
Getting "'ColumnHeader' is a 'type' but is used like a 'variable'". This only started happening after I put in the overload with no param.
The class name is ColumnHeader. The compiler doesn't complain about the CTOR with code in it.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform