Results 1 to 36 of 36

Thread: [RESOLVED] Open file in textbox

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Resolved [RESOLVED] Open file in textbox

    Hi again!

    I need help with opening a textfile into a textbox...I thought I maybe could do something like this:

    VB Code:
    1. Open "c:/test.txt" For Input As #1
    2.     Do Until 8 = 5
    3.         On Error GoTo ready
    4.         Input #1, newline
    5.         Text1.Text = Text1 & vbCrLf & newline
    6.     Loop
    7. ready:
    8. Close

    But as you understand everything that's in Text1 goes on one line and the newline thing goes on another...but I want every new input to go on a new line...do you understand what I'm looking for?

    Please help!

    //Alex
    Last edited by cyber_alex; May 25th, 2006 at 04:38 AM.
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

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