>Thanks Stephen.
>
>That did it. Strange behavior.
>
>Robert
The TextWidth method on the form would be a better way to calculate the length of the string on the current font (in pixels). I suspect that might be the problem from your sample:
lnWidth = This.TextWidth(lcText)