>>Center has nothing to do with AutoSize, which only changes the width of the label. Actually, if guess you must set AutoSize off in your case, to allow for room to center.
>
>The code is right, I tested it and it works, the autosize is important so you get the actual width of the label after changing the caption, otherwise you will need to calculate it manually. I think she is just missing the refresh.
I guess it depends on other settings. If you set Left of the label, and Autosize=.T., the label will always be left adjusted. Or is it my logic which is turned off momentarily?