Results 1 to 2 of 2

Thread: Text Boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Norwich/Reading
    Posts
    5
    I apologise now, this is a simple question!!! a momment of density has got me baffled, i have a text file which nees to appear in a text box! i have the file name retrived using the commomdialog ut how do i get it to display the contents of the text file in the text box??

    I'm sure its easy, infact i know its easy i just can't think!!

    cheers in advance

    Andy

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You have to open the file for Input and read it.
    Code:
    Dim iFile As Integer
    'the code to show the common dialog
    'goes here
    iFile = FreeFile
    Open CommonDialog1.FileName For Input As #iFile
    Text1.Text = Input(LOF(iFile), iFile)
    Close #iFile
    Good luck!

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