Hi,
I'm having a problem getting the AutoControlSize to working properly. I enclose an example VB 2005 project using v19 illustrating the problem.
I have a series of TextControls embedded in a TableLayoutPanel with Dock = Top, AutoExpand = Vertical and AutoShrink = Vertical. I am trying to load the controls with RTF but usually when I do this the control does not resize. Sometimes it does but then, if the control width changes because the form has been resized, the height is not readjusted.
Is there a way to force the control to resize? Or to get the required height and set it myself?
Many thanks,
Robert
I'm having a problem getting the AutoControlSize to working properly. I enclose an example VB 2005 project using v19 illustrating the problem.
I have a series of TextControls embedded in a TableLayoutPanel with Dock = Top, AutoExpand = Vertical and AutoShrink = Vertical. I am trying to load the controls with RTF but usually when I do this the control does not resize. Sometimes it does but then, if the control width changes because the form has been resized, the height is not readjusted.
Is there a way to force the control to resize? Or to get the required height and set it myself?
Many thanks,
Robert