i have just begun experimenting on using table layout panel to keep things organised. I have added a label control with some text into a cell. how do I get this text back into a string variable at a later time? or even modify the text in the label in the cell?
i have just begun experimenting on using table layout panel to keep things organised.
Share
When you add the control, just store a reference to it in the form.
Add this to the main form body (not inside a method):
in your code that adds the label:
Then later, just access myLabel anywhere in the form code.