By default the Label is visible in that sense i said Yes it is visible.
When i explicitly set thisform.Label1.visible = .t. it worked.
I had the same problem years back but i couldn't remember what i did to solve it. Everything is always top on your head.
Thanks Sergey
>Is label Visible? The width will not change until label become visible.
>
>>
>>In form.Init if i change the caption of a label, but the width of the label remains the same
>>
>>
>>thisform.label1.caption = 'Label1'
>>nWidth1 = thisform.label1.Width
>>thisform.label1.AutoSize=.f.
>>thisform.label1.caption = 'A quick brown fox jumps over the lazy dog'
>>thisform.label1.AutoSize=.t.
>>nWidth2 = thisform.label1.Width
>>
>>?nWidth1=nWidth2
>>
>>
>>
>>please guide