-
TextWidth in .NET
I am converting a huge project from VB6 to VB.NET 2003. I have a problem with textwidth. I think it has something to do with graphics.measurestring. Here is the code i am having trouble with.
If Frm_DocumentSelection(Trim(aMemName)) > lSplit Then
SplitStrByTextWidth(Frm_DocumentSelection.DefInstance,aMemName, aSplit, lAddress)
For i = 0 To lLinesRemain
If Len(lAddress(i)) > 0 Then
Temp = Temp & lAddress(i) & vbCr & vbLf
lLinesRemain = lLinesRemain - 1
lAddress(i) = ""
End If
Next i
Else
Temp = aMemName & vbCr & IIf(Entity.Jurisdiction <> "IOM", vbLf, "")
lLinesRemain = lLinesRemain - 1
End If
Can anyone shed somelight on this?
:wave:
-
If you had searched this thread you would have seen we had a discussion about it, the 6th post in this thread:
http://www.vbforums.com/showthread.p...hreadid=268920
is a comparison of two different solutions available.