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. C#
  4. how to get and set scrollbar positions of a rich textbox control.?

how to get and set scrollbar positions of a rich textbox control.?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
2 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.
  • N Offline
    N Offline
    neoksd
    wrote on last edited by
    #1

    As the title says, I am wondering about how to get and set scrollbar positions of a rich textbox control. I want to make haxa editor using C#. so I used 3 richbox. first richbox displays the line number, second richbox displays Haxa data and the last richbox display ascii code. so all richbox scrolled at same position and at the same time. Does anyone know a method to get and set textbox scrollbar positions?

    N 1 Reply Last reply
    0
    • N neoksd

      As the title says, I am wondering about how to get and set scrollbar positions of a rich textbox control. I want to make haxa editor using C#. so I used 3 richbox. first richbox displays the line number, second richbox displays Haxa data and the last richbox display ascii code. so all richbox scrolled at same position and at the same time. Does anyone know a method to get and set textbox scrollbar positions?

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      neoksd wrote: Does anyone know a method to get and set textbox scrollbar positions? Off the top of my head you can P/Invoke GetScrollPos and SetScrollPos. I think you might be better to P/Invoke GetScrollInfo and SetScrollInfo instead though. - Nick Parker
        My Blog

      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