Results 1 to 3 of 3

Thread: add a text file to a form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    add a text file to a form

    how do i add a text file to the form like in a setup program the license agreement form. i have tried ole an inserted the text file but it dosent have scroll bars.

    Thnks in advance chris1990

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: add a text file to a form

    Use a Textbox.. set the MultiLine and ScrollBars properties as apt.

    (to load the file, see our Classic VB FAQ).

  3. #3
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: add a text file to a form

    VB Code:
    1. Open "c:\test.txt" For Input As #1
    2.     Text1.Text = Input(LOF(1), 1)
    3. Close #1

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