VB5 to Pic VB5 Help


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default

    Ok, I will make it even simpler. This is the code I'm using to test the multiline feature

    Code:
    Option Explicit
    
    Private Sub Command1_Click()
    Dim MyNumber As Long
    Dim I As Long
    
    MyNumber = 0
    
    For I = 0 To 50
        Text1.SelStart = Len(Text1)             'Finds the starting point to append text
        Text1.SelText = MyNumber & vbCrLf       'Appends text
        MyNumber = MyNumber + 100
    Next I
    
    End Sub
    And, this is the result

    Name:  VB6-Pic.JPG
Views: 796
Size:  18.5 KB

    Just try these two lines and they should work

    Code:
        Text1.SelStart = Len(Text1)             'Finds the starting point to append text
        Text1.SelText = MyNumber & vbCrLf       'Appends text
    Make sure you have the next settings correct

    Name:  VB6-Pic01.JPG
Views: 915
Size:  73.7 KB
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default VB5 to Pic

    Just try these two lines and they should work

    Text1.SelStart = Len(Text1) 'Finds the starting point to append text
    Text1.SelText = MyNumber & vbCrLf 'Appends text

    For Me Simple is really good!! THIS WORKS !! just changed the mynumber to mystr and bingo scrolls, Ok I just ( learnt somethin )

    Thank You !!
    you spent a lot of time helping! I appreciate it! there was someone else who could use this but forgot who ??

    Thank You
    Larry

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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