Results 1 to 3 of 3

Thread: Connect scrollbar to richtextbox

  1. #1
    Guest

    Hoi to you all,

    I tried to connect a horizontal scrollbar to the
    vertical scrollbar of a richtextbox but didn't succeed.
    Is it possible to do so ?

    (background : i try to group a set of controls together
    to avoid large hand-movements with the mouse...RSI...
    eh...and i'm a kind of lasy type of person...:<) )

    GUUS

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    set these 2 properties at design time.
    RichTextBox1.ScrollBars = rtfBoth
    RichTextBox1.RightMargin = 50000
    If your box is small enough the bars will be added.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Guest

    Sorry HeSaidJoe , after rereading my message, i think
    i wasn't very clear :
    I placed a horizontal scrollbar Hscroll1 on the top of
    a form and a RichTextBox with the settings you subscribed, in the bottom of the form.
    If i activate Hscroll1 either left or right, i would like
    to programmatically change the vertical slider of the
    textbox...something like set the focus on the textbox and
    simulate a pagedown or pageup on the keyboard but that
    didn't work out..i can't find the right commands and/or
    events...

    Thanks for replying anyway.

    GUUS



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