I have another problem if you can help:
How to move label caption with clicking VScrollbar.Label value changes with VSCrollbar according to the code:
label1.caption=vscrllbar1.value
But I need the position of the label caption changes with changing the scrollbar either up or down?

Use the label1.Top property to set the new vertical position of the label according to the scroll bar value.

Hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.