public XColumnHeader() { } public Header(ColumnHeaders Parent) { InitializeComponent(); lblCaption.Left = CAPTION_LABEL_MARGIN; lblCaption.Top = CAPTION_LABEL_MARGIN; }My call does not pass anything so InitializeComponent() never gets called. Changed it to:
public Header() { Header(null); } public XColumnHeader(XColumnHeaders Parent) { InitializeComponent(); lblCaption.Left = CAPTION_LABEL_MARGIN; lblCaption.Top = CAPTION_LABEL_MARGIN; }I gotta lay off the fruit juice when I'm coding!!!
>public string Caption >{ > get { return _Caption; } > set > { > _Caption = value; > lblCaption.Text = _Caption; > } >} >>
>Header HeaderName = new Header(); >HeaderName.Caption = "Name"; ; >HeaderName.Width = 100; >HeaderName.Key = "name"; >