Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem Overloading CTOR
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Problem Overloading CTOR
Miscellaneous
Thread ID:
01407726
Message ID:
01407726
Views:
104
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
Next
Reply
Map
View

Click here to load this message in the networking platform