Results 1 to 4 of 4

Thread: Darn scrollbars

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Location
    Romania
    Posts
    13

    Darn scrollbars

    I have a text editor (like Niotepad) and I read the text using the file system object like this

    Dim fso As New FileSystemObject, fil As file, ts As TextStream
    Set fil = fso.GetFile("C:\world.txt")
    Set fil =ts.opeanAstextstream(ForReading)
    e = ts.ReadAll

    and so on, but if the text is larger than the textbox, i need a scrollbar and don't know how to put code in order to scroll the text. please help me. I'm sure my 'reading' code isn't good!
    To make a program or not to make a program... that is the question. Or to destroy your computer's monitor, that's a second question

  2. #2
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    The TextBox control has a ScrollBars property which by default is set to None. Thats why your arent showing up . Set it to Horizontal, Vertical or Both and it will handle the rest for you, no coding required
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Location
    Romania
    Posts
    13

    Thanx

    Thanks! I wouldn't have figured it out! Darn scrollbars!
    To make a program or not to make a program... that is the question. Or to destroy your computer's monitor, that's a second question

  4. #4
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    cool
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

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