truc0011
asked on
visual basic scroll bar question
How do I add a scroll bar to a form? To just scroll up and down the form in case of data not being displayed on the screen?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great help!
Thanks
Thanks
Add a vertical scroll bar (VScrollBar).
In the change event of the vertical scroll bar you can retrieve the value property of the scroll bar itself and change the top property of the picture box (moving the control and all the objects with it).
You're also gonna need to write some code in the form_resize event to keep the scroll bar to the right of the form with the same heigth of form.scaleheigth.