[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

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?
0
bladefist
Asked:
bladefist
  • 4
  • 3
1 Solution
 
NBrownohCommented:
its kind of hard to do with a vscroll
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
0
 
NBrownohCommented:
oops, change the frame1.height to frame1.top
0
 
NBrownohCommented:
another oops, just do this for the change event
Private Sub VScroll1_Change()
    Frame1.Top = -VScroll1.Value
End Sub
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
bladefistAuthor Commented:
Well I would really like a way to scroll the form.  But i'll try that..
0
 
bladefistAuthor Commented:
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.
0
 
NBrownohCommented:
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
0
 
bladefistAuthor Commented:
test
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now