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 :(
Printable View
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 :(
I don't exactly understand what you want.
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.
------------------------------------
So you want the text box and label to scroll together?
hmmm.....Im not sure that a label can scroll
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.
That might work, maybe you can count lines.
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.
Wait...
I just noticed. It DOES scroll by line.
Cool. Thanx!