>Does anyone know if it is possible to determine the correct height of a label such that all wrapped text (ie all lines) are visible?
>
>For example, if my label's caption is, "This is a very long caption which has word wrap set on..." and I set word wrap to .T. and anchor it such that it stretches horizontally, how can I programatically determine the label's height in order to show the full caption (when it wraps).
>
>TIA
>Mike
I don't think you need to calculate the height. You just need to set the width to a firm number and set the label's AutoSize to .T.