Solved

Form expansion

Posted on 2009-03-30
5
132 Views
Last Modified: 2013-12-26
How to make up and down scroll bar to show the entire form of the project?
My project has a lot of command button that accommodate the entire form. I need to expand it but i do not know how? Please give me some ideas or example on how to make it...
Thanks
0
Comment
Question by:Whing Dela Cruz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 24021908
You could put the controls on a frame and vary the value of the frame's Top property with the value of a vertical scroll bar.
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 24021929
Another idea is to use a tab control and to group the controls on different tabs.
0
 

Author Comment

by:Whing Dela Cruz
ID: 24024676
can you give me some examples? i do not know how to start it!
thanks!  
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 24026551
OK. I will assume that you want to use the first suggestion.
Select the existing controls. Cut (Ctrl+X) them to the clipboard.
Place a large frame control on the form. Then paste (Ctrl+V) the orginal controls on to the frame. If necessary, you can adjust the frame height in the properties window so that it is larger than the form.

There isn't all that much code.
Option Explicit
 
Private Sub Form_Load()
    'Frame1 is larger than the form.
    'Let the scroll bar span the difference
    VScroll1.Max = Frame1.Height - Form1.ScaleHeight
End Sub
 
 
Private Sub VScroll1_Change()
    Frame1.Top = -VScroll1.Value
End Sub

Open in new window

0
 

Author Closing Comment

by:Whing Dela Cruz
ID: 31564422
Thanks so much!
The code is working and i'm now starting my program..
thanks! more power!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question