>Rich,
>
>Create method SetCaption for container class and use it instead of settting label caption directly
>
>* Method SetCaption
>LPARAMETERS tcCaption
>lnOldWidth = This.label1.Width
>This.label1.Caption = tcCaption
>lnNewWidth = This.label1.Width
>This.Width = This.Width + (lnNewWidth - lnOldWidth)
>
>
Funny, I believe I used the same idea in one of my applications...
If it's not broken, fix it until it is.
My Blog