• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Scroll Bars to frames

I have a frame which contains many other frames.  It is not possible to view all the frames at once on the screen.  Therefore I want to assign a scroll bar to the main frame (i.e. the one containing all the others) so that the user can scroll the frame up or down in order to see all the contents.
  • 2
1 Solution
BungleAuthor Commented:
Edited text of question.
okay, place a Scrollbar on your FORM, not Frames... let's say you place a vertical scroll bar...

then in ScrollBar's Change() and Scroll() event you place the following code...

TheMainFrame.Top = -VScroll1.Value

that will do it :)

you can even change the SmallChange and LargeChange properties of the scroll bar so it works as the original ones :)

oh, and don't forget to set the MAX property of the scroll bar to something that will fit...

BungleAuthor Commented:

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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