>Hilmar
>
>This is a textbox and I don't see an autosize property??
That's right. I was assuming a Label. Perhaps you have to use the other approach: use TxtWidth() to do your calculations.
Or perhaps you can use a TextBox whose width is more-than-enough, and center the text in the TextBox.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)