Results 1 to 8 of 8

Thread: Scrolling Label with Multiline Textbox

  1. #1

    Thread Starter
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Unhappy

    Can some-one help me with this??

    I want to scroll the contents of a label with a multiline textbox. The label contains the line numbers, but if I scroll down, the line numbers doesn't

    r0ach™
    Don't forget to rate the post

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    I don't exactly understand what you want.

  3. #3

    Thread Starter
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    ...sorry...

    If my textbox is big enough to display 20 lines, and the text in it covers 30 lines, then I need to scroll down to view the last 10 lines. I want the label to scroll automatically, when the text in the textbox start moving, so that the line numbers are still in line with it's corresponding line.

    like this:

    ------------------------------------
    1 Hello,
    2 This is
    3 an example of
    ------------------------------------

    must become:

    ------------------------------------
    2 This is
    3 an example of
    4 what I want.
    ------------------------------------

    r0ach™
    Don't forget to rate the post

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    So you want the text box and label to scroll together?

    hmmm.....Im not sure that a label can scroll

  5. #5

    Thread Starter
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722
    I was thinking of putting the label in a picturebox, and then moving it up or down (setting the top property), but I don't know by how much i should decrement/increment the .Top property.

    r0ach™
    Don't forget to rate the post

  6. #6
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    That might work, maybe you can count lines.

  7. #7

    Thread Starter
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722
    Thought of that, but the textbox does not scroll by line. It doesn't show fonts cut off, but it doesn't scroll by fixed amounts.

    r0ach™
    Don't forget to rate the post

  8. #8

    Thread Starter
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722
    Wait...
    I just noticed. It DOES scroll by line.

    Cool. Thanx!

    r0ach™
    Don't forget to rate the post

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