Creating Scrollbar inside the form question

keigo

Active member
Joined
Oct 27, 2008
Messages
29
Programming Experience
Beginner
I would like to create a scrollbar within a form. And it should allow user to scroll within the form effectively. What I face is this:

See where ever I scroll the text inside the scroll box will not change its position.

Any help is kindly appreciated. Thank you,

k.
 

Attachments

  • scroll-1.bmp
    63.3 KB · Views: 22
  • scroll-2.bmp
    62.4 KB · Views: 22
I'm not 100% sure what you mean. Are you saying you DO want the text to stay in the same position relative to the form whenever the user scrolls or that you DON'T want it?
 
I do not want it to stay where it is. When I scroll it, the text should moves. What I mean is the texts are not really moving, but the scroll allows user to move to view the other texts that are not fully displayed.

To try to put my words in visual way, look at the scoll bar in this website. But currently, mine -- the text inside the form do not react as supposed it is.
 
It seems to me that you're creating problems for yourself. Don't add the scroll bars yourself. Just add a Panel and set it's AutoScroll property to True. You can now add Labels inside and outside the visible bounds of the control and the scroll bars will be created automatically. The user can scroll and everything will work as you want.
 
Back
Top