Kevin,
In addition to the code below, you need to add Wordwrap = .T. before setting the Width. Without it, the Width limitation doesn't hold.
HTH.
>Larry,
>
>Here's my code:
>
>
>WITH ThisForm.lblTest
>
> .Caption = "This is a really,really long line of test text"
> .BorderStyle = 1 && For testing
> .Width = 75
> .AutoSize = .T.
> .Height = FONTMETRIC(1 , .FontName, .FontSize)
>
>ENDWITH
>>
>All this did was extend the width of the label out to
>the right.
>
>
>The problem is the height. I dont know how many lines there are
>going to be until AFTER the label resizes. I DO know the max width
>the label can be though.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao