I'm working on a project at the moment and I'm trying to have it where every contact within the ArrayList has their own tab page. Within the tab page I want all their info to be displayed, to do this I'm trying to create labels that will have their information. I'm right now just at the point trying to get at least one label to appear, but it does not appear to be displaying at all. My code is below. Any help?
int count = 0;
foreach (clsContactHandler contact in clsGlobal.mContacts)
{
string tabName = contact.FirstName + " " + contact.LastName;
Font font = new Font("Microsoft Sans Serif", 16.0f, FontStyle.Bold);
TabPage contactPage = new TabPage(tabName);
tabs.TabPages.Add(tabName);
Label label = new Label();
contactPage.Controls.Add(label);
label.Font = font;
label.AutoSize = true;
label.Location = new System.Drawing.Point(16, 7);
label.Name = "label" + count;
label.Size = new System.Drawing.Size(43, 13);
label.Text = "Name:";
count++;
}