Hi there,

I got a small problem with The TextWidth function.
I Use it to wrap text if it doesn't fit in the area i wan't it in...

VB Code:
  1. If TextWidth(strMyVar) > UserControl.ScaleWidth Then
  2.         Do Until TextWidth(strMyVar) < (UserControl.ScaleWidth)
  3.             x = Val(x + 2)
  4.             strMyVar = Left(strMyVar, Len(strMyVar) - x)
  5.         Loop
  6.         strMyVar = strMyVar & "..."
  7.     End If

This works fine with plain text, but how can i do it with bold text? coz that work...

Anybody who can help me out? or maby a better way to do it?

phroze