Results 1 to 2 of 2

Thread: TextWidth in .NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Posts
    1

    Angry 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?

    I came... i saw.... i made a right mess of it all. But you got to laugh !!!!

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width