bladefist
asked on
Form Scrolling
I want my form, (Form1) to be able to scroll with a Vscroll1 like a webpage would. So the form would enlarge verticly and scroll down. How can i do that?
oops, change the frame1.height to frame1.top
another oops, just do this for the change event
Private Sub VScroll1_Change()
Frame1.Top = -VScroll1.Value
End Sub
Private Sub VScroll1_Change()
Frame1.Top = -VScroll1.Value
End Sub
ASKER
Well I would really like a way to scroll the form. But i'll try that..
ASKER
Ok well that will be tricky too...Because as I scroll up, I'll have to keep making the frame bigger and scroll bar bigger because the frame will just scroll off the screen.
na you can just set the max to the height of the fram minus the height of the form, then subtract the height of the title bar and it wont go off the form
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
test
the easiest way would be to put all your controls in a frame then have vscroll control the position of that frame. I would just set the min of the scrollbar to 0 and the max to the height of the frame. then with the Private Sub VScroll1_Change() event just use the vscroll.value to set the height position of the frame.
Private Sub VScroll1_Change()
Frame1.height = VScroll1.Value
End Sub