J
jj
i try to add a group of linklabel to winform as following, but when running
it, i can only see one linklabel added (the first one). Could anyone help
me to solve it and tell me why?
thanks
jj
---------------------------------------------------
LinkLabel[] lnkCase = new LinkLabel[caseCount];
for (int i = 0; i < caseCount; i++)
{
lnkCase = new LinkLabel();
lnkCase.Text = dirs.Name;
lnkCase.Name = dirs.Name;
lnkCase.Location = new System.Drawing.Point(100 + i * 2, 80 + i *
2);
lnkCase.Size = new System.Drawing.Size(272, 23);
lnkCase.LinkClicked += new
System.Windows.Forms.LinkLabelLinkClickedEventHandler
(lnkCase_LinkClicked);
this.Controls.Add(lnkCase);
}
-----------------------------------------
it, i can only see one linklabel added (the first one). Could anyone help
me to solve it and tell me why?
thanks
jj
---------------------------------------------------
LinkLabel[] lnkCase = new LinkLabel[caseCount];
for (int i = 0; i < caseCount; i++)
{
lnkCase = new LinkLabel();
lnkCase.Text = dirs.Name;
lnkCase.Name = dirs.Name;
lnkCase.Location = new System.Drawing.Point(100 + i * 2, 80 + i *
2);
lnkCase.Size = new System.Drawing.Size(272, 23);
lnkCase.LinkClicked += new
System.Windows.Forms.LinkLabelLinkClickedEventHandler
(lnkCase_LinkClicked);
this.Controls.Add(lnkCase);
}
-----------------------------------------