0

Hi Guys!

I have problem coding with a vertical Scroll bar.
I made a label in form1 and a vertical scroll bar next the it on the right side.
The vertical Scroll bar is to scroll down the label if the label is full of text.

Here is my code

Private Sub VScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VScrollBar1.Scroll
        Label1.Top = VScrollBar1.Value
    End Sub

And I found out.When running, the label itself moves but not the text showing on the label.

Anyone can tell me what i have done wrong? Or did I just used the wrong tool to display large amount of text that it doesn't go further on in a label?

Thank you!!

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by TrueVb.NetNoob
0

Hi,

You can't do that or you should create your own Label.

Is there a raison to use a Label, because the Listbox is created for that with VScrollbar.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.