Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. TextBox / RichTextBox - displaying the end

TextBox / RichTextBox - displaying the end

Scheduled Pinned Locked Moved Visual Basic
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SerialHobbyist
    wrote on last edited by
    #1

    Hi I'm using a TextBox (or could use a RichTextBox) to display a file. I want it to default to showing the last few lines of the file, rather than the first. I've had a look at MSDN but I can't seem to find anything relevant. Can you help? SH

    L 1 Reply Last reply
    0
    • S SerialHobbyist

      Hi I'm using a TextBox (or could use a RichTextBox) to display a file. I want it to default to showing the last few lines of the file, rather than the first. I've had a look at MSDN but I can't seem to find anything relevant. Can you help? SH

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try this rtb.SelectionStart = rtb.TextLength rtb.ScrollToCaret() Hope this helps.

      Aaron Eldreth

      TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy

      S 1 Reply Last reply
      0
      • L Lost User

        Try this rtb.SelectionStart = rtb.TextLength rtb.ScrollToCaret() Hope this helps.

        Aaron Eldreth

        TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy

        S Offline
        S Offline
        SerialHobbyist
        wrote on last edited by
        #3

        You star! Thanks very much.

        L 1 Reply Last reply
        0
        • S SerialHobbyist

          You star! Thanks very much.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          No problem. Glad I could help.

          Aaron Eldreth

          TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups