RichTextBox - Set/Get first visible line

vb6 Australia
  • 19 years ago

    Hello.


    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
    Australia

  • 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).

Contribute

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.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond