|
-
Jul 7th, 2000, 09:31 AM
#1
Thread Starter
Fanatic Member
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
-
Jul 7th, 2000, 09:34 AM
#2
Frenzied Member
I don't exactly understand what you want.
-
Jul 7th, 2000, 09:54 AM
#3
Thread Starter
Fanatic Member
...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
-
Jul 7th, 2000, 09:58 AM
#4
Frenzied Member
So you want the text box and label to scroll together?
hmmm.....Im not sure that a label can scroll
-
Jul 7th, 2000, 10:01 AM
#5
Thread Starter
Fanatic Member
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
-
Jul 7th, 2000, 10:04 AM
#6
Frenzied Member
That might work, maybe you can count lines.
-
Jul 7th, 2000, 10:08 AM
#7
Thread Starter
Fanatic Member
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
-
Jul 7th, 2000, 10:15 AM
#8
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|