I have added controls dynamically on runtime inside the rows of a tableLayoutpanel , the controls added are LABELS, LINKLABEL AND A PICTURE BOX.
Now , i want to change the value(Text Property) of these dynamically added controls(Labels, Linklabels) to some specified value, on a button click.
How do i do this? Please help with code.
Is there some kind of ID for these dynamically controls like we have in HTML.
Also , am trying to use this but all in vain………..
Control[] GettableLayoutPanelControls = new Control[11];
GettableLayoutPanelControls = tableLayoutPanel1.Controls.Find("Control Name", true) ;
GettableLayoutPanelControls.SetValue("CHANGED VALUE ", 0); //this line gives error..........
Try something like this, which will add 11 new text boxes (or any other control you want):
This will dynamically add Text Boxes to your TableLayout control. If you need to retreive them later: