RichTextBox - Set/Get first visible line

vb6 Australia
  • 19 years ago


    Is there any way I can set the first visible line in a RichTextBox.

    What I really want to do is to have 2 (or more) RTB's, each loaded with the same file, and when I scroll one, the other, on mouse up, synchronizes.

    Thank you

    Steven hicks

  • 19 years ago

    Try the EMSETSCROLLPOS and EMGETSCROLLPOS messages (note that these are only supported if you have the latest version of the richtextbox control... ie windows 2000)

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”