I have a user control with a TableLayoutPanel that has two columns (and one row). One column is autosize, the other is absolute. There is a RadLabel in the cell in the autosize column. I'm programmatically loading a number of these user controls onto a FlowLayoutPanel. They resize their widths if the user resizes the form.
I'm loading the text on the RadLabel from the database. I would like to make the label figure out its size (width = FlowLayoutPanel's column width, height = whatever it takes to contain the text). Then fix the height of the FlowLayoutPanel and the user control to be able to contain that RadLabel.
I have been looking all over the forum but I haven't figured out the magic combination of properties and calculations to make this work. Can it be done?
Thank you,
Gary
I'm loading the text on the RadLabel from the database. I would like to make the label figure out its size (width = FlowLayoutPanel's column width, height = whatever it takes to contain the text). Then fix the height of the FlowLayoutPanel and the user control to be able to contain that RadLabel.
I have been looking all over the forum but I haven't figured out the magic combination of properties and calculations to make this work. Can it be done?
Thank you,
Gary