Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create dynamic linklabels in my window form...can any one help me???
Posted

1 solution

Hi,

Take a panel in the form and write the below code.
C#
for(int i=0;i<10;i++)
{
    LinkLabel lbl = new LinkLabel();
    lbl.Text = "Link Label " + i.ToString();
    lbl.Location = new Point(10 + i, 20 + i);  // figure the formula which will place the controls in proper position and order
    
    panel1.Controls.Add(lbl);
}


hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900